diff --git a/NeoBoot/files/userscript.sh b/NeoBoot/files/userscript.sh index 8d946fe..0a7c4cc 100644 --- a/NeoBoot/files/userscript.sh +++ b/NeoBoot/files/userscript.sh @@ -1,21 +1,25 @@ #!/bin/sh # script gutosie # here you can add your own command to perform -# line - Checking internet connection by @j00zek thank you - -if [ ! -e /usr/bin/enigma2_pre_start.sh ] ; then - /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh +# line - Checking internet connection by @j00zek thank you + +IMAGEKATALOG=ImageBoot + +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 echo "_(Checking internet connection)..." ping -c 1 github.com 1>/dev/null 2>%1 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; - echo "stopping network connection" + echo "_____(stopping network connection)_____" sleep 1; /etc/init.d/networking start; - echo "start network connection" + echo "_____(start network connection)_____" sleep 5 if [ $? -gt 0 ]; then @@ -29,24 +33,24 @@ if [ $? -gt 0 ]; then fi if [ ! -f /tmp/ver.txt ] ; then /etc/init.d/networking stop; - echo "stopping network connection" + echo "_____(stopping network connection)_____" sleep 2; /etc/init.d/networking start; - echo "start network connection" + echo "_____(start network connection)_____" fi fi - if [ -e ./%1 ] ; then - rm -f ./%1 + if [ -e /%1 ] ; then + rm -f /%1 fi # echo " dns-nameservers 1.1.1.1 " >> /etc/network/interfaces else - echo "_(github server available)!!!" + echo "_____!!!(github server available)!!!_____" fi -echo "file used userscript " +echo "!!!_____([NEOBOOT] used userscript)_____!!! " echo ok exit 0