Blame SOURCES/0152-network-handle-ip-dhcp6-for-all-interfaces.patch

966cef
From 8cfcacd3f95621b71766071881a3f5a11a6001de Mon Sep 17 00:00:00 2001
966cef
From: Harald Hoyer <harald@redhat.com>
966cef
Date: Tue, 25 Mar 2014 15:39:56 +0100
966cef
Subject: [PATCH] network: handle "ip=dhcp6" for all interfaces
966cef
966cef
https://bugzilla.redhat.com/show_bug.cgi?id=1064365
966cef
---
966cef
 modules.d/40network/ifup.sh | 7 ++++++-
966cef
 1 file changed, 6 insertions(+), 1 deletion(-)
966cef
966cef
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
966cef
index 51b0d52..ede0188 100755
966cef
--- a/modules.d/40network/ifup.sh
966cef
+++ b/modules.d/40network/ifup.sh
966cef
@@ -364,7 +364,12 @@ fi
966cef
 
966cef
 # no ip option directed at our interface?
966cef
 if [ ! -e /tmp/net.${netif}.up ]; then
966cef
-    do_dhcp -4
966cef
+    if getargs 'ip=dhcp6'; then
966cef
+        load_ipv6
966cef
+        do_dhcp -6
966cef
+    else
966cef
+        do_dhcp -4
966cef
+    fi
966cef
 fi
966cef
 
966cef
 exit 0