You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.1 KiB
26 lines
1.1 KiB
6 years ago
|
From f1ea5376ed00e4e18b3829e4f267973bb9816f72 Mon Sep 17 00:00:00 2001
|
||
|
From: Harald Hoyer <harald@redhat.com>
|
||
|
Date: Thu, 3 Apr 2014 08:53:09 +0200
|
||
|
Subject: [PATCH] ifcfg/write-ifcfg.sh: turn on IPV6INIT, if any inet6 address
|
||
|
is found
|
||
|
|
||
|
If "ip -6 addr" finds any inet6 address, assume IPV6INIT=yes for the
|
||
|
ifcfg file.
|
||
|
---
|
||
|
modules.d/45ifcfg/write-ifcfg.sh | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
|
||
|
index e2fa4850..486c69a3 100755
|
||
|
--- a/modules.d/45ifcfg/write-ifcfg.sh
|
||
|
+++ b/modules.d/45ifcfg/write-ifcfg.sh
|
||
|
@@ -122,7 +122,7 @@ for netup in /tmp/net.*.did-setup ; do
|
||
|
echo "UUID=\"$uuid\""
|
||
|
if [ -f /tmp/dhclient.$netif.lease ]; then
|
||
|
[ -f /tmp/dhclient.$netif.dhcpopts ] && . /tmp/dhclient.$netif.dhcpopts
|
||
|
- strstr "$ip" '*:*:*' && echo "IPV6INIT=yes"
|
||
|
+ strstr "$(ip -6 addr show dev $netif)" 'inet6' && echo "IPV6INIT=yes"
|
||
|
if [ -f /tmp/net.$netif.has_ibft_config ]; then
|
||
|
echo "BOOTPROTO=ibft"
|
||
|
else
|