mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-03 12:45:47 +01:00
Update userscript.sh
This commit is contained in:
@@ -16,6 +16,10 @@
|
|||||||
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh
|
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh
|
||||||
echo "...Start -mountpoint.sh- location NEOBOOT..."
|
echo "...Start -mountpoint.sh- location NEOBOOT..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /.control_boot_new_image ] ; then
|
||||||
|
break ;
|
||||||
|
else
|
||||||
echo "....................-NEOBOOT-...................."
|
echo "....................-NEOBOOT-...................."
|
||||||
echo "...Checking internet connection..."
|
echo "...Checking internet connection..."
|
||||||
ping -c 1 github.com 1>/dev/null 2>%1
|
ping -c 1 github.com 1>/dev/null 2>%1
|
||||||
@@ -24,26 +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/networking force-reload;
|
||||||
ifdown wlan3
|
sync
|
||||||
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
|
|
||||||
ifup wlan3
|
|
||||||
ip -o addr show dev wlan3
|
|
||||||
echo "...Restart network finish..."
|
echo "...Restart network finish..."
|
||||||
echo ".............................."
|
echo ".............................."
|
||||||
sleep 1
|
sleep 1
|
||||||
else
|
sleep 5
|
||||||
echo "...github server available..."
|
else
|
||||||
echo "...The network has a connection. It is OK..."
|
echo "github server available"
|
||||||
fi
|
echo "The network has a connection. It is OK"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
if [ -f /zImage ] ; then
|
if [ -f /zImage ] ; then
|
||||||
rm -r /zImage
|
rm -r /zImage
|
||||||
fi
|
fi
|
||||||
@@ -60,5 +55,4 @@
|
|||||||
echo "....................-NEOBOOT-...................."
|
echo "....................-NEOBOOT-...................."
|
||||||
echo "............................................"
|
echo "............................................"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user