mirror of
https://mojerepo.cf/NeoBoot/NeoBoot-9.git
synced 2025-11-01 10:55:50 +01:00
Update userscript.sh
This commit is contained in:
@@ -23,6 +23,20 @@ ping -c 1 github.com 1>/dev/null 2>%1
|
|||||||
if [ $? -gt 0 ]; then
|
if [ $? -gt 0 ]; then
|
||||||
echo -n "_(github server unavailable, update impossible)!!! network restart... "
|
echo -n "_(github server unavailable, update impossible)!!! network restart... "
|
||||||
/etc/init.d/networking stop; sleep 1; /etc/init.d/networking start;
|
/etc/init.d/networking stop; sleep 1; /etc/init.d/networking start;
|
||||||
|
if [ $? -gt 0 ]; then
|
||||||
|
if [ -e /usr/bin/curl ]; then
|
||||||
|
cd /tmp; curl -O --ftp-ssl https://raw.githubusercontent.com/gutosie/NeoBoot8/master/ver.txt;
|
||||||
|
cd /
|
||||||
|
elif [ -e /usr/bin/wget ]; then
|
||||||
|
wget https://raw.githubusercontent.com/gutosie/NeoBoot8/master/ver.txt -O /tmp/ver.txt
|
||||||
|
cd /
|
||||||
|
|
||||||
|
fi
|
||||||
|
if [ ! -f /tmp/ver.txt ] ; then
|
||||||
|
/etc/init.d/networking stop; sync; /etc/init.d/networking start;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
echo " dns-nameservers 1.1.1.1" >> /etc/network/interfaces
|
||||||
else
|
else
|
||||||
echo "_(github server available)!!!"
|
echo "_(github server available)!!!"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user