|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
From d4dd3521bbdf8b66265af06778c6556d0f8aaf9a Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
From: Harald Hoyer <harald@redhat.com>
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
Date: Thu, 3 Apr 2014 08:53:09 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
Subject: [PATCH] ifcfg/write-ifcfg.sh: turn on IPV6INIT, if any inet6 address
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
is found
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
If "ip -6 addr" finds any inet6 address, assume IPV6INIT=yes for the
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
ifcfg file.
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
modules.d/45ifcfg/write-ifcfg.sh | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
index e2fa485053..486c69a3c7 100755
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
--- a/modules.d/45ifcfg/write-ifcfg.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
+++ b/modules.d/45ifcfg/write-ifcfg.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
@@ -122,7 +122,7 @@ for netup in /tmp/net.*.did-setup ; do
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
echo "UUID=\"$uuid\""
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
if [ -f /tmp/dhclient.$netif.lease ]; then
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
[ -f /tmp/dhclient.$netif.dhcpopts ] && . /tmp/dhclient.$netif.dhcpopts
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
- strstr "$ip" '*:*:*' && echo "IPV6INIT=yes"
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
+ strstr "$(ip -6 addr show dev $netif)" 'inet6' && echo "IPV6INIT=yes"
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
if [ -f /tmp/net.$netif.has_ibft_config ]; then
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
echo "BOOTPROTO=ibft"
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
else
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
--
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
1.9.3
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|