]> 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>
Tue, 29 Jul 2014 09:59:36 +0000 (11:59 +0200)
(cherry picked from commit 1230f3bcffd8837e8846e60376ea2a88ef5ab257)

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

index 5dc351d584a70c2e1474576957dea86bad15f560..457a9ac4acf51ce33e67b0269cfe6291f7513030 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