restart network will have better success
This commit is contained in:
@@ -100,11 +100,10 @@ conf_network()
|
||||
fi
|
||||
done
|
||||
|
||||
prnt I "Trying to raise down iface up. Allready configured iface will require a reboot"
|
||||
ifup -a || true && prnt W "Ignoring errors here."
|
||||
prnt I "Restart network to apply changes"
|
||||
svc_restart networking || true && prnt W "Ignoring errors here."
|
||||
|
||||
unset iface if_file
|
||||
export NEED_REBOOT=true
|
||||
}
|
||||
|
||||
precheck_conf_network()
|
||||
@@ -119,7 +118,7 @@ precheck_conf_network()
|
||||
die 175
|
||||
else
|
||||
if [[ $(grep "up" /sys/class/net/$iface/operstate) ]]; then
|
||||
prnt W "The IPv4 iface $iface, is already configured, a reboot will be required."
|
||||
prnt W "The IPv4 iface $iface, is already configured, a reboot could be required."
|
||||
fi
|
||||
fi
|
||||
if [[ -z $(eval echo \$NET4_MODE_$iface) ]]; then
|
||||
@@ -157,7 +156,7 @@ precheck_conf_network()
|
||||
die 175
|
||||
else
|
||||
if [[ $(grep "up" /sys/class/net/$iface/operstate) ]]; then
|
||||
prnt W "The IPv6 iface $iface, is already configured, a reboot will be required."
|
||||
prnt W "The IPv6 iface $iface, is already configured, a reboot could be required."
|
||||
fi
|
||||
fi
|
||||
if [[ -z $(eval echo \$NET6_MODE_$iface) ]]; then
|
||||
|
||||
Reference in New Issue
Block a user