parent
776355717c
commit
fb29bd369a
1 changed files with 3 additions and 2 deletions
|
@ -13,8 +13,9 @@ preinit_ip() {
|
||||||
else
|
else
|
||||||
ifname=eth0
|
ifname=eth0
|
||||||
fi
|
fi
|
||||||
pi_ifname=$ifname
|
pi_ifname=$ifname
|
||||||
}
|
}
|
||||||
|
fi
|
||||||
[ -n "$pi_ifname" ] && grep "$pi_ifname" /proc/net/dev >/dev/null && {
|
[ -n "$pi_ifname" ] && grep "$pi_ifname" /proc/net/dev >/dev/null && {
|
||||||
ifconfig $pi_ifname $pi_ip netmask $pi_netmask broadcast $pi_broadcast up
|
ifconfig $pi_ifname $pi_ip netmask $pi_netmask broadcast $pi_broadcast up
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue