From: Seewer Philippe Date: Thu, 18 Jun 2009 08:36:32 +0000 (+0200) Subject: fix check for dhclient-script, if interface is already up X-Git-Tag: 0.1~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00c0d5b869ba0874f501c78d26672b04712712ab;p=thirdparty%2Fdracut.git fix check for dhclient-script, if interface is already up --- diff --git a/modules.d/40network/dhclient-script b/modules.d/40network/dhclient-script index 80ab54c44..4153eb89e 100755 --- a/modules.d/40network/dhclient-script +++ b/modules.d/40network/dhclient-script @@ -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