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

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