From 102a7a0039e532eaf3ad142d6c6e05998845b220 Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 12 Jan 2024 14:04:35 +0200 Subject: [PATCH] Update userscript.sh --- NeoBoot/files/userscript.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/NeoBoot/files/userscript.sh b/NeoBoot/files/userscript.sh index 0de5440..2a76f75 100644 --- a/NeoBoot/files/userscript.sh +++ b/NeoBoot/files/userscript.sh @@ -28,17 +28,17 @@ echo "...The network has no connection..." echo "...Network RESTART..." echo "...restart network connection..." - /etc/init.d/avahi-daemon stop - ifdown wlan3 - ip addr flush dev wlan3 - ifdown eth0 - ip addr flush dev eth0 - /etc/init.d/networking stop - killall -9 udhcpc - rm /var/run/udhcpc* - /etc/init.d/networking start - /etc/init.d/avahi-daemon start - ip -o addr show dev wlan3 + /etc/init.d/avahi-daemon stop + ifdown wlan3 + ip addr flush dev wlan3 + ifdown eth0 + ip addr flush dev eth0 + /etc/init.d/networking stop + killall -9 udhcpc + rm /var/run/udhcpc* + /etc/init.d/networking start + /etc/init.d/avahi-daemon start + ip -o addr show dev wlan3 echo "...Restart network finish..." echo ".............................." sleep 1