Blame SOURCES/0326-network-ifup.sh-only-use-dhcp-on-unknown-interfaces-.patch

18971c
From 7c24815034241e490422691b5f18671c4b9812a9 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Tue, 25 Aug 2015 11:37:16 +0200
18971c
Subject: [PATCH] network/ifup.sh: only use dhcp on unknown interfaces for
18971c
 ip=dhcp
18971c
18971c
---
18971c
 modules.d/40network/ifup.sh | 2 +-
18971c
 1 file changed, 1 insertion(+), 1 deletion(-)
18971c
18971c
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
18971c
index d944126c..005c2cc9 100755
18971c
--- a/modules.d/40network/ifup.sh
18971c
+++ b/modules.d/40network/ifup.sh
18971c
@@ -433,7 +433,7 @@ if [ ! -e /tmp/net.${netif}.up ]; then
18971c
     if getargs 'ip=dhcp6'; then
18971c
         load_ipv6
18971c
         do_dhcp -6
18971c
-    else
18971c
+    elif getargs 'ip=dhcp'; then
18971c
         do_dhcp -4
18971c
     fi
18971c
 fi