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

a56a5e
From 42896820ba1bba0da86e783ac6e1e4951a9acf88 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
1755ca
index 51b0d528..ede01883 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