From 850831f51cb96793bb0c88b96f083ade8990358b Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Thu, 25 Sep 2025 21:35:59 +0200 Subject: [PATCH] restart network will have better success --- modules/conf_network.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/conf_network.sh b/modules/conf_network.sh index 4df7c6b..88c93c8 100644 --- a/modules/conf_network.sh +++ b/modules/conf_network.sh @@ -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