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

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