ifcfg/write-ifcfg.sh: "IPV6INIT=yes" check also for non-dhcp
parent
636cc1ef63
commit
1230f3bcff
|
@ -120,9 +120,9 @@ for netup in /tmp/net.*.did-setup ; do
|
||||||
echo "ONBOOT=yes"
|
echo "ONBOOT=yes"
|
||||||
echo "NETBOOT=yes"
|
echo "NETBOOT=yes"
|
||||||
echo "UUID=\"$uuid\""
|
echo "UUID=\"$uuid\""
|
||||||
|
strstr "$(ip -6 addr show dev $netif)" 'inet6' && echo "IPV6INIT=yes"
|
||||||
if [ -f /tmp/dhclient.$netif.lease ]; then
|
if [ -f /tmp/dhclient.$netif.lease ]; then
|
||||||
[ -f /tmp/dhclient.$netif.dhcpopts ] && . /tmp/dhclient.$netif.dhcpopts
|
[ -f /tmp/dhclient.$netif.dhcpopts ] && . /tmp/dhclient.$netif.dhcpopts
|
||||||
strstr "$(ip -6 addr show dev $netif)" 'inet6' && echo "IPV6INIT=yes"
|
|
||||||
if [ -f /tmp/net.$netif.has_ibft_config ]; then
|
if [ -f /tmp/net.$netif.has_ibft_config ]; then
|
||||||
echo "BOOTPROTO=ibft"
|
echo "BOOTPROTO=ibft"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue