mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-02 12:25:46 +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
|
||||||
@@ -249,19 +254,23 @@ else
|
|||||||
echo "----------------------------------------"
|
echo "----------------------------------------"
|
||||||
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 !!! "
|
||||||
echo "Not found correctly unpacked image "$TARGET" z partycji " $DEVICE
|
echo "Not found correctly unpacked image "$TARGET" z partycji " $DEVICE
|
||||||
echo "Check the correctness of unpacked catalogs in the selected one image. "
|
echo "Check the correctness of unpacked catalogs in the selected one image. "
|
||||||
echo " Back to image Flash... "
|
echo " Back to image Flash... "
|
||||||
|
|
||||||
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
|
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
|
||||||
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