ifcfg/write-ifcfg.sh: "IPV6INIT=yes" check also for non-dhcp

master
Harald Hoyer 2014-05-12 13:53:38 +02:00
parent 636cc1ef63
commit 1230f3bcff
1 changed files with 1 additions and 1 deletions

View File

@ -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