fix duo4K

This commit is contained in:
gutosie
2022-12-20 23:23:16 +02:00
committed by GitHub
parent 050466c0aa
commit cab2af4507

View File

@@ -169,6 +169,11 @@ else
if [ $NEODEVICE = "/media/hdd/" ]; then
/bin/mount /dev/sda1 /media/hdd > /dev/null 2>&1
fi
if [ $NEODEVICE = "/media/usb/" ]; then
/bin/mount /dev/sdb1 /media/usb > /dev/null 2>&1
fi
#/bin/mount /dev/sda1 /media/hdd > /dev/null 2>&1
#/bin/mount /dev/sdb1 /media/usb > /dev/null 2>&1
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "Error mounting, Return to image Flash..."
sleep 2
@@ -250,6 +255,10 @@ else
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init.sysvinit
elif [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init ]; then
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init
elif [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/lib/systemd/systemd ]; then
echo " start file - systemd" >> $neoLOG
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /lib/systemd/systemd
echo "====================================================> "
else
echo " "
echo " NEOBOOT - ERROR !!! "
@@ -261,7 +270,7 @@ else
sync; ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot
echo "Used Kernel: Reinstall kernel !" > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/used_flash_kernel
sleep 15; reboot -f
sleep 20; reboot -f
fi
exit 0