fix check for dhclient-script, if interface is already up
parent
e2ab42236b
commit
00c0d5b869
|
@ -43,12 +43,12 @@ if getarg rdnetdebug ; then
|
|||
set -x
|
||||
fi
|
||||
|
||||
# Huh? Interface configured?
|
||||
[ -f "/tmp/net.$netif.up" ] && exit 0
|
||||
|
||||
# We already need a set netif here
|
||||
netif=$interface
|
||||
|
||||
# Huh? Interface configured?
|
||||
[ -f "/tmp/net.$netif.up" ] && exit 0
|
||||
|
||||
case $reason in
|
||||
PREINIT)
|
||||
ip link set $netif up
|
||||
|
|
Loading…
Reference in New Issue