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

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