]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix check for dhclient-script, if interface is already up
authorSeewer Philippe <philippe.seewer@bfh.ch>
Thu, 18 Jun 2009 08:36:32 +0000 (10:36 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 18 Jun 2009 08:36:32 +0000 (10:36 +0200)
modules.d/40network/dhclient-script

index 80ab54c444f94ffd03e09865f9531073492a158a..4153eb89e3d604024e8d62c9e112d9a9c7e97eae 100755 (executable)
@@ -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