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