Update userscript.sh

This commit is contained in:
gutosie
2024-01-12 11:39:00 +02:00
committed by GitHub
parent 903f20d7da
commit a2febc4039

View File

@@ -2,6 +2,19 @@
# script gutosie
# here you can add your own command to perform
# line - Checking internet connection by @j00zek thank you
if [ ! -f /etc/rc.local ] || [ ! -f /etc/init.d/rc.local ] || [ ! -f /etc/init.d/rcS.local ]; then
echo "...rc.local does not exist..."
elif [ -f /etc/rc.local ] || [ -f /etc/init.d/rc.local ] || [ -f /etc/init.d/rcS.local ]; then
if [ -f /etc/rcS.d/S99neo.local ] ; then
rm -f /etc/rcS.d/S99neo.local
echo "...rm S99neo.local..."
else
echo "...rc.local exist..."
break ;
fi
else
if [ -f /.control_boot_new_image ] ; then
passwd -d root
ln -sf "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot" "/NeoBoot"
@@ -30,7 +43,7 @@ else
/etc/init.d/vuplus-wifi-init.sh
#/etc/wpa_supplicant/action_wpa.sh
#/etc/wpa_supplicant/functions.sh
#/etc/wpa_supplicant/ifupdown.sh
/etc/wpa_supplicant/ifupdown.sh
#ifconfig sys0 up
#/etc/udhcpc.d/50default restart
/etc/init.d/networking restart
@@ -43,7 +56,6 @@ else
fi
#else
#break ;
#fi
fi
if [ -f /zImage ] ; then
@@ -61,4 +73,6 @@ fi
echo "...NEOBOOT used user script Finish..."
echo "....................-NEOBOOT-...................."
echo "............................................"
fi
exit 0