]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ifcfg/write-ifcfg.sh: add "IPV6INIT=yes" for IPv6
authorHarald Hoyer <harald@redhat.com>
Thu, 6 Sep 2012 09:38:48 +0000 (11:38 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 6 Sep 2012 09:38:48 +0000 (11:38 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=852808

modules.d/45ifcfg/write-ifcfg.sh

index b62170dd55cd6b324f799189ac7f4775d38e9c65..8cc3796523bb0a54d2b9ff4d659707f9c1614ffc 100755 (executable)
@@ -105,6 +105,7 @@ for netif in $IFACES ; do
         [ -n "$mtu" ] && echo "MTU=$mtu"
         if [ -f /tmp/net.$netif.lease ]; then
             strstr "$ip" '*:*:*' &&
+            echo "IPV6INIT=yes"
             echo "DHCPV6C=yes"
             echo "BOOTPROTO=dhcp"
             cp /tmp/net.$netif.lease /tmp/ifcfg-leases/dhclient-$uuid-$netif.lease
@@ -112,6 +113,7 @@ for netif in $IFACES ; do
             # If we've booted with static ip= lines, the override file is there
             [ -e /tmp/net.$netif.override ] && . /tmp/net.$netif.override
             if strstr "$ip" '*:*:*'; then
+                echo "IPV6INIT=yes"
                 echo "IPV6_AUTOCONF=no"
                 echo "IPV6ADDR=$ip/$mask"
             else