fix check for dhclient-script, if interface is already up

master
Seewer Philippe 2009-06-18 10:36:32 +02:00 committed by Harald Hoyer
parent e2ab42236b
commit 00c0d5b869
1 changed files with 3 additions and 3 deletions

View File

@ -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