mirror of
https://github.com/gutosie/neoboot.git
synced 2025-10-31 19:35:48 +01:00
Add files via upload
This commit is contained in:
@@ -1,64 +1,37 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# script gutosie
|
# script gutosie
|
||||||
# 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 [ -f /.control_boot_new_image ] ; then
|
||||||
IMAGEKATALOG=ImageBoot
|
|
||||||
|
|
||||||
if [ -e /.control_boot_new_image ] ; then
|
|
||||||
passwd -d root
|
passwd -d root
|
||||||
ln -sf "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot" "/NeoBoot"
|
ln -sf "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot" "/NeoBoot"
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot/.neonextboot ] ; then
|
||||||
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ] ; then
|
mkdir `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
|
||||||
mkdir `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
|
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
|
||||||
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
|
echo "_________Start mountpoint location NEOBOOT_________"
|
||||||
echo "_(_________Start mountpoint location NEOBOOT_________)"
|
|
||||||
fi
|
fi
|
||||||
|
if [ -f /.control_boot_new_image ] ; then
|
||||||
echo "_(Checking internet connection)..."
|
break ;
|
||||||
ping -c 1 github.com 1>/dev/null 2>%1
|
|
||||||
if [ $? -gt 0 ]; then
|
|
||||||
echo -n "_(github server unavailable, update impossible)\n!!! network restart...!!! )"
|
|
||||||
/etc/init.d/networking stop;
|
|
||||||
echo "_____(stopping network connection)_____"
|
|
||||||
sleep 1;
|
|
||||||
/etc/init.d/networking start;
|
|
||||||
echo "_____(start network connection)_____"
|
|
||||||
sleep 5
|
|
||||||
|
|
||||||
if [ $? -gt 0 ]; then
|
|
||||||
if [ -e /usr/bin/curl ]; then
|
|
||||||
cd /tmp; curl -O --ftp-ssl https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt; cd /
|
|
||||||
elif [ -e /usr/bin/wget ]; then
|
|
||||||
wget https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt -O /tmp/ver.txt
|
|
||||||
cd /
|
|
||||||
|
|
||||||
fi
|
|
||||||
if [ ! -f /tmp/ver.txt ] ; then
|
|
||||||
/etc/init.d/networking stop;
|
|
||||||
echo "_____(stopping network connection)_____"
|
|
||||||
sleep 2;
|
|
||||||
/etc/init.d/networking start;
|
|
||||||
echo "_____(start network connection)_____"
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# echo " dns-nameservers 1.1.1.1 " >> /etc/network/interfaces
|
|
||||||
else
|
else
|
||||||
echo "_____!!!(github server available)!!!_____"
|
echo "_(Checking internet connection)..."
|
||||||
fi
|
ping -c 1 github.com 1>/dev/null 2>%1
|
||||||
|
if [ $? -gt 0 ]; then
|
||||||
if [ -e /%1 ] ; then
|
echo -n "_github server unavailable\nNetwork restart..."
|
||||||
|
/etc/init.d/networking stop;
|
||||||
|
echo "_____stopping network connection_____"
|
||||||
|
sleep 1
|
||||||
|
echo "_____start network connection_____"
|
||||||
|
/etc/init.d/networking start;
|
||||||
|
sleep 5
|
||||||
|
else
|
||||||
|
echo "_____github server available_____"
|
||||||
|
fi
|
||||||
|
if [ -f /%1 ] ; then
|
||||||
rm -f /%1
|
rm -f /%1
|
||||||
fi
|
fi
|
||||||
if [ -e /home/root/%1 ] ; then
|
if [ -f /home/root/%1 ] ; then
|
||||||
rm -f /home/root/%1
|
rm -f /home/root/%1
|
||||||
fi
|
fi
|
||||||
|
echo "_____[NEOBOOT] used userscript_____ "
|
||||||
echo "!!!_____([NEOBOOT] used userscript)_____!!! "
|
exit 0
|
||||||
echo ok
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user