]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network/ifup.sh: only use dhcp on unknown interfaces for ip=dhcp
authorHarald Hoyer <harald@redhat.com>
Tue, 25 Aug 2015 09:37:16 +0000 (11:37 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 25 Aug 2015 09:37:16 +0000 (11:37 +0200)
modules.d/40network/ifup.sh

index d944126c101967d52f89306096f4666599b9fa31..005c2cc959e527599a284d8f07f44af59bf663f9 100755 (executable)
@@ -433,7 +433,7 @@ if [ ! -e /tmp/net.${netif}.up ]; then
     if getargs 'ip=dhcp6'; then
         load_ipv6
         do_dhcp -6
-    else
+    elif getargs 'ip=dhcp'; then
         do_dhcp -4
     fi
 fi