Update userscript.sh

This commit is contained in:
gutosie
2024-01-20 20:20:28 +02:00
committed by GitHub
parent fb279974f1
commit 14df153fec

View File

@@ -25,9 +25,6 @@
break ; break ;
else else
echo "....................-NEOBOOT-...................." echo "....................-NEOBOOT-...................."
if [ -e /sys/class/net/sys0 ]; then
ifconfig sys0 up
fi
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
if [ $? -gt 0 ]; then if [ $? -gt 0 ]; then
@@ -39,8 +36,7 @@
sync sync
echo "...Restart network finish..." echo "...Restart network finish..."
echo ".............................." echo ".............................."
sleep 1 sleep 2
sleep 5
else else
echo "github server available" echo "github server available"
echo "The network has a connection. It is OK" echo "The network has a connection. It is OK"