mirror of
https://github.com/gutosie/neoboot.git
synced 2025-10-31 19:35:48 +01:00
Update userscript.sh
This commit is contained in:
@@ -28,17 +28,17 @@
|
|||||||
echo "...The network has no connection..."
|
echo "...The network has no connection..."
|
||||||
echo "...Network RESTART..."
|
echo "...Network RESTART..."
|
||||||
echo "...restart network connection..."
|
echo "...restart network connection..."
|
||||||
/etc/init.d/avahi-daemon stop
|
/etc/init.d/avahi-daemon stop
|
||||||
ifdown wlan3
|
ifdown wlan3
|
||||||
ip addr flush dev wlan3
|
ip addr flush dev wlan3
|
||||||
ifdown eth0
|
ifdown eth0
|
||||||
ip addr flush dev eth0
|
ip addr flush dev eth0
|
||||||
/etc/init.d/networking stop
|
/etc/init.d/networking stop
|
||||||
killall -9 udhcpc
|
killall -9 udhcpc
|
||||||
rm /var/run/udhcpc*
|
rm /var/run/udhcpc*
|
||||||
/etc/init.d/networking start
|
/etc/init.d/networking start
|
||||||
/etc/init.d/avahi-daemon start
|
/etc/init.d/avahi-daemon start
|
||||||
ip -o addr show dev wlan3
|
ip -o addr show dev wlan3
|
||||||
echo "...Restart network finish..."
|
echo "...Restart network finish..."
|
||||||
echo ".............................."
|
echo ".............................."
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
Reference in New Issue
Block a user