mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-01 11:55:47 +01:00
Update userscript.sh
This commit is contained in:
@@ -2,22 +2,35 @@
|
||||
# script gutosie
|
||||
# here you can add your own command to perform
|
||||
# line - Checking internet connection by @j00zek thank you
|
||||
if [ -f /.control_boot_new_image ] ; then
|
||||
|
||||
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"
|
||||
fi
|
||||
if [ ! -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot/.neonextboot ] ; then
|
||||
fi
|
||||
if [ ! -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot/.neonextboot ] ; then
|
||||
mkdir `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
|
||||
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
|
||||
echo "...Start -neo.sh- mount point location NEOBOOT..."
|
||||
fi
|
||||
if [ ! -e /usr/bin/enigma2_pre_start.sh ]; then
|
||||
fi
|
||||
if [ ! -e /usr/bin/enigma2_pre_start.sh ]; then
|
||||
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh
|
||||
echo "...Start -mountpoint.sh- location NEOBOOT..."
|
||||
fi
|
||||
if [ -f /.control_boot_new_image ] ; then
|
||||
fi
|
||||
if [ -f /.control_boot_new_image ] ; then
|
||||
break ;
|
||||
else
|
||||
else
|
||||
#if [ -f /usr/lib/python2.7 ] ; then
|
||||
echo "....................-NEOBOOT-...................."
|
||||
echo "...Checking internet connection..."
|
||||
@@ -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,22 +56,23 @@ else
|
||||
fi
|
||||
#else
|
||||
#break ;
|
||||
|
||||
#fi
|
||||
fi
|
||||
if [ -f /zImage ] ; then
|
||||
fi
|
||||
if [ -f /zImage ] ; then
|
||||
rm -r /zImage
|
||||
fi
|
||||
if [ -f /%1 ] ; then
|
||||
fi
|
||||
if [ -f /%1 ] ; then
|
||||
rm -f /%1
|
||||
fi
|
||||
if [ -f /home/root/%1 ] ; then
|
||||
fi
|
||||
if [ -f /home/root/%1 ] ; then
|
||||
rm -f /home/root/%1
|
||||
fi
|
||||
if [ -f /STARTUP ] ; then
|
||||
fi
|
||||
if [ -f /STARTUP ] ; then
|
||||
rm -r /STARTU*
|
||||
fi
|
||||
echo "...NEOBOOT used user script Finish..."
|
||||
echo "....................-NEOBOOT-...................."
|
||||
echo "............................................"
|
||||
fi
|
||||
echo "...NEOBOOT used user script Finish..."
|
||||
echo "....................-NEOBOOT-...................."
|
||||
echo "............................................"
|
||||
exit 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user