Update userscript.sh

This commit is contained in:
gutosie
2024-01-12 13:11:13 +02:00
committed by GitHub
parent 361af7b9f6
commit 4544e03285

View File

@@ -3,18 +3,6 @@
# 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
chmod 755 /etc/rcS.d/S99neo.local
echo "...chmod 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"
@@ -40,13 +28,17 @@ else
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/avahi-daemon stop
#/etc/wpa_supplicant/action_wpa.sh ifdown wlan3
#/etc/wpa_supplicant/functions.sh ip addr flush dev wlan3
/etc/wpa_supplicant/ifupdown.sh ifdown eth0
#ifconfig sys0 up ip addr flush dev eth0
#/etc/udhcpc.d/50default restart /etc/init.d/networking stop
/etc/init.d/networking restart killall -9 udhcpc
rm /var/run/udhcpc*
/etc/init.d/networking start
/etc/init.d/avahi-daemon start
ip -o addr show dev wlan3
echo "...Restart network finish..." echo "...Restart network finish..."
echo ".............................." echo ".............................."
sleep 1 sleep 1
@@ -73,6 +65,5 @@ else
echo "...NEOBOOT used user script Finish..." echo "...NEOBOOT used user script Finish..."
echo "....................-NEOBOOT-...................." echo "....................-NEOBOOT-...................."
echo "............................................" echo "............................................"
fi
exit 0 exit 0