mirror of
https://github.com/gutosie/neoboot.git
synced 2025-12-27 02:30:04 +01:00
Update userscript.sh
This commit is contained in:
@@ -18,9 +18,12 @@
|
||||
fi
|
||||
|
||||
if [ -f /.control_boot_new_image ] ; then
|
||||
ifdown eth0
|
||||
break ;
|
||||
else
|
||||
echo "....................-NEOBOOT-...................."
|
||||
if [ -e /sys/class/net/sys0 ]; then
|
||||
ifconfig sys0 up
|
||||
fi
|
||||
echo "...Checking internet connection..."
|
||||
ping -c 1 github.com 1>/dev/null 2>%1
|
||||
if [ $? -gt 0 ]; then
|
||||
@@ -28,10 +31,7 @@
|
||||
echo "...The network has no connection..."
|
||||
echo "...Network RESTART..."
|
||||
echo "...restart network connection..."
|
||||
#/etc/init.d/networking force-reload;
|
||||
if [ -e /sys/class/net/sys0 ]; then
|
||||
ifconfig sys0 up
|
||||
fi
|
||||
/etc/init.d/networking force-reload;
|
||||
sync
|
||||
echo "...Restart network finish..."
|
||||
echo ".............................."
|
||||
|
||||
Reference in New Issue
Block a user