From: Harald Hoyer Date: Tue, 25 Mar 2014 14:39:56 +0000 (+0100) Subject: network: handle "ip=dhcp6" for all interfaces X-Git-Tag: 038~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c7f7a337a8adeaa052274aa4b59bb25b90d1ea5;p=thirdparty%2Fdracut.git network: handle "ip=dhcp6" for all interfaces https://bugzilla.redhat.com/show_bug.cgi?id=1064365 --- diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index 51b0d5287..ede018832 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -364,7 +364,12 @@ fi # no ip option directed at our interface? if [ ! -e /tmp/net.${netif}.up ]; then - do_dhcp -4 + if getargs 'ip=dhcp6'; then + load_ipv6 + do_dhcp -6 + else + do_dhcp -4 + fi fi exit 0