mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-03 04:35:47 +01:00
fix duo4K
This commit is contained in:
@@ -169,6 +169,11 @@ else
|
|||||||
if [ $NEODEVICE = "/media/hdd/" ]; then
|
if [ $NEODEVICE = "/media/hdd/" ]; then
|
||||||
/bin/mount /dev/sda1 /media/hdd > /dev/null 2>&1
|
/bin/mount /dev/sda1 /media/hdd > /dev/null 2>&1
|
||||||
fi
|
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
|
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
|
||||||
echo "Error mounting, Return to image Flash..."
|
echo "Error mounting, Return to image Flash..."
|
||||||
sleep 2
|
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
|
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
|
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
|
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
|
else
|
||||||
echo " "
|
echo " "
|
||||||
echo " NEOBOOT - ERROR !!! "
|
echo " NEOBOOT - ERROR !!! "
|
||||||
@@ -261,7 +270,7 @@ else
|
|||||||
sync; ln -sfn /sbin/init.sysvinit /sbin/init
|
sync; ln -sfn /sbin/init.sysvinit /sbin/init
|
||||||
echo "Flash " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot
|
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
|
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
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user