mirror of
https://mojerepo.cf/NeoBoot/NeoBoot-9.git
synced 2025-10-29 12:46:07 +01:00
up 9.02
This commit is contained in:
@@ -3,19 +3,23 @@
|
|||||||
# here you can add your own command to perform
|
# here you can add your own command to perform
|
||||||
# line - Checking internet connection by @j00zek thank you
|
# line - Checking internet connection by @j00zek thank you
|
||||||
|
|
||||||
if [ ! -e /usr/bin/enigma2_pre_start.sh ] ; then
|
IMAGEKATALOG=ImageBoot
|
||||||
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh
|
|
||||||
|
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ] ; then
|
||||||
|
mkdir `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
|
||||||
|
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
|
||||||
|
echo "_(_________Start mountpoint location NEOBOOT_________)"
|
||||||
fi
|
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
|
||||||
echo -n "_(github server unavailable, update impossible)!!! \nnetwork restart... "
|
echo -n "_(github server unavailable, update impossible)\n!!! network restart...!!! )"
|
||||||
/etc/init.d/networking stop;
|
/etc/init.d/networking stop;
|
||||||
echo "stopping network connection"
|
echo "_____(stopping network connection)_____"
|
||||||
sleep 1;
|
sleep 1;
|
||||||
/etc/init.d/networking start;
|
/etc/init.d/networking start;
|
||||||
echo "start network connection"
|
echo "_____(start network connection)_____"
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
if [ $? -gt 0 ]; then
|
if [ $? -gt 0 ]; then
|
||||||
@@ -29,24 +33,24 @@ if [ $? -gt 0 ]; then
|
|||||||
fi
|
fi
|
||||||
if [ ! -f /tmp/ver.txt ] ; then
|
if [ ! -f /tmp/ver.txt ] ; then
|
||||||
/etc/init.d/networking stop;
|
/etc/init.d/networking stop;
|
||||||
echo "stopping network connection"
|
echo "_____(stopping network connection)_____"
|
||||||
sleep 2;
|
sleep 2;
|
||||||
/etc/init.d/networking start;
|
/etc/init.d/networking start;
|
||||||
echo "start network connection"
|
echo "_____(start network connection)_____"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e ./%1 ] ; then
|
if [ -e /%1 ] ; then
|
||||||
rm -f ./%1
|
rm -f /%1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# echo " dns-nameservers 1.1.1.1 " >> /etc/network/interfaces
|
# echo " dns-nameservers 1.1.1.1 " >> /etc/network/interfaces
|
||||||
else
|
else
|
||||||
echo "_(github server available)!!!"
|
echo "_____!!!(github server available)!!!_____"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "file used userscript "
|
echo "!!!_____([NEOBOOT] used userscript)_____!!! "
|
||||||
echo ok
|
echo ok
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user