Blame SOURCES/0168-ifcfg-write-ifcfg.sh-IPV6INIT-yes-check-also-for-non.patch

a56a5e
From d38488e8d561a80b34e532e31c00c0801c104a23 Mon Sep 17 00:00:00 2001
a56a5e
From: Harald Hoyer <harald@redhat.com>
a56a5e
Date: Mon, 12 May 2014 13:53:38 +0200
a56a5e
Subject: [PATCH] ifcfg/write-ifcfg.sh: "IPV6INIT=yes" check also for non-dhcp
a56a5e
a56a5e
(cherry picked from commit 1230f3bcffd8837e8846e60376ea2a88ef5ab257)
a56a5e
---
a56a5e
 modules.d/45ifcfg/write-ifcfg.sh | 2 +-
a56a5e
 1 file changed, 1 insertion(+), 1 deletion(-)
a56a5e
a56a5e
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
1755ca
index 5dc351d5..457a9ac4 100755
a56a5e
--- a/modules.d/45ifcfg/write-ifcfg.sh
a56a5e
+++ b/modules.d/45ifcfg/write-ifcfg.sh
a56a5e
@@ -120,9 +120,9 @@ for netup in /tmp/net.*.did-setup ; do
a56a5e
         echo "ONBOOT=yes"
a56a5e
         echo "NETBOOT=yes"
a56a5e
         echo "UUID=\"$uuid\""
a56a5e
+        strstr "$(ip -6 addr show dev $netif)" 'inet6' && echo "IPV6INIT=yes"
a56a5e
         if [ -f /tmp/dhclient.$netif.lease ]; then
a56a5e
             [ -f /tmp/dhclient.$netif.dhcpopts ] && . /tmp/dhclient.$netif.dhcpopts
a56a5e
-            strstr "$(ip -6 addr show dev $netif)" 'inet6' && echo "IPV6INIT=yes"
a56a5e
             if [ -f /tmp/net.$netif.has_ibft_config ]; then
a56a5e
                 echo "BOOTPROTO=ibft"
a56a5e
             else