mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-02 04:15:47 +01:00
Update userscript.sh
This commit is contained in:
@@ -2,6 +2,19 @@
|
|||||||
# 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 /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
|
if [ -f /.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"
|
||||||
@@ -30,7 +43,7 @@ else
|
|||||||
/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
|
||||||
@@ -43,7 +56,6 @@ else
|
|||||||
fi
|
fi
|
||||||
#else
|
#else
|
||||||
#break ;
|
#break ;
|
||||||
|
|
||||||
#fi
|
#fi
|
||||||
fi
|
fi
|
||||||
if [ -f /zImage ] ; then
|
if [ -f /zImage ] ; then
|
||||||
@@ -61,4 +73,6 @@ fi
|
|||||||
echo "...NEOBOOT used user script Finish..."
|
echo "...NEOBOOT used user script Finish..."
|
||||||
echo "....................-NEOBOOT-...................."
|
echo "....................-NEOBOOT-...................."
|
||||||
echo "............................................"
|
echo "............................................"
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user