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

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