Update userscript.sh

This commit is contained in:
gutosie
2024-01-08 13:44:27 +02:00
committed by GitHub
parent 795d86cf06
commit c5ca7a4e2a

View File

@@ -9,36 +9,37 @@ fi
if [ ! -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot/.neonextboot ] ; then if [ ! -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot/.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 -neo.sh- mount point location NEOBOOT_________" echo "...Start -neo.sh- mount point location NEOBOOT..."
fi fi
if [ ! -e /usr/bin/enigma2_pre_start.sh ]; then if [ ! -e /usr/bin/enigma2_pre_start.sh ]; then
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh
echo "_________Start -mountpoint.sh- location NEOBOOT_________" echo "...Start -mountpoint.sh- location NEOBOOT..."
fi fi
if [ -f /.control_boot_new_image ] ; then if [ -f /.control_boot_new_image ] ; then
break ; break ;
else else
#if [ -f /usr/lib/python2.7 ] ; then #if [ -f /usr/lib/python2.7 ] ; then
echo "_____(Checking internet connection)..." echo "....................-NEOBOOT-...................."
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 "_____github server unavailable..." echo "...github server unavailable..."
echo "_____The network has no connection..." echo "...The network has no connection..."
echo "_____Network RESTART..." echo "...Network RESTART..."
echo "_____restart network connection..." echo "...restart network connection..."
/etc/init.d/vuplus-wifi-init.sh #/etc/init.d/vuplus-wifi-init.sh
/etc/wpa_supplicant/action_wpa.sh /etc/wpa_supplicant/action_wpa.sh
/etc/wpa_supplicant/functions.sh /etc/wpa_supplicant/functions.sh
/etc/wpa_supplicant/ifupdown.sh /etc/wpa_supplicant/ifupdown.sh
ifconfig sys0 up ifconfig sys0 up
/etc/udhcpc.d/50default restart /etc/udhcpc.d/50default restart
#/etc/init.d/networking restart #/etc/init.d/networking restart
echo "_____Restart network finish..." echo "...Restart network finish..."
echo ".............................." echo ".............................."
sleep 1 sleep 1
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..."
fi fi
#else #else
#break ; #break ;
@@ -58,5 +59,6 @@ if [ -f /STARTUP ] ; then
rm -r /STARTU* rm -r /STARTU*
fi fi
echo "_____[NEOBOOT] used user script Finish_____ " echo "_____[NEOBOOT] used user script Finish_____ "
echo "....................-NEOBOOT-...................."
echo "............................................" echo "............................................"
exit 0 exit 0