]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network/ifup.sh: ifup with dhcp, if no ip= params specified
authorHarald Hoyer <harald@redhat.com>
Tue, 10 Sep 2013 08:49:51 +0000 (10:49 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 10 Sep 2013 08:49:51 +0000 (10:49 +0200)
modules.d/40network/ifup.sh

index f9e16694f8badc426dc1c355c0e9a4b1bff6d574..32616470c24753ac506da269114d32bcafed7f09 100755 (executable)
@@ -333,6 +333,12 @@ for p in $(getargs ip=); do
             ;;
     esac
 
-    break
+    exit 0
 done
+
+# no ip option directed at our interface?
+if [ ! -e /tmp/setup_net_${netif}.ok ]; then
+    do_dhcp -4
+fi
+
 exit 0