]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ifcfg/write-ifcfg.sh: "IPV6INIT=yes" check also for non-dhcp
authorHarald Hoyer <harald@redhat.com>
Mon, 12 May 2014 11:53:38 +0000 (13:53 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 12 May 2014 11:53:38 +0000 (13:53 +0200)
modules.d/45ifcfg/write-ifcfg.sh

index 5de2e901424d0f90bd64e3d131bc170bdf0a0d46..0fa5f40418b5a49f5bb6c17127649437667f2e8a 100755 (executable)
@@ -120,9 +120,9 @@ for netup in /tmp/net.*.did-setup ; do
         echo "ONBOOT=yes"
         echo "NETBOOT=yes"
         echo "UUID=\"$uuid\""
+        strstr "$(ip -6 addr show dev $netif)" 'inet6' && echo "IPV6INIT=yes"
         if [ -f /tmp/dhclient.$netif.lease ]; then
             [ -f /tmp/dhclient.$netif.dhcpopts ] && . /tmp/dhclient.$netif.dhcpopts
-            strstr "$(ip -6 addr show dev $netif)" 'inet6' && echo "IPV6INIT=yes"
             if [ -f /tmp/net.$netif.has_ibft_config ]; then
                 echo "BOOTPROTO=ibft"
             else