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

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