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 80ab54c..4153eb8 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