mirror of
https://mojerepo.cf/NeoBoot/NeoBoot-9.git
synced 2025-11-02 00:35:49 +01:00
activation
This commit is contained in:
@@ -1,23 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
TARGET=Flash
|
|
||||||
NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
|
NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
|
||||||
IMAGEKATALOG=ImageBoot
|
IMAGEKATALOG=ImageBoot
|
||||||
UPLOADKATALOG=ImagesUpload
|
UPLOADKATALOG=ImagesUpload
|
||||||
|
|
||||||
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_ok ]; then
|
TARGET=Flash
|
||||||
echo "No Error - Booting image normal..."
|
if [ -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
||||||
else
|
TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
|
||||||
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_boot_new_image ]; then
|
|
||||||
echo "First start image - The first attempt to launch a new image... ";
|
|
||||||
rm -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_boot_new_image > /dev/null 2>&1
|
|
||||||
else
|
|
||||||
echo "Wrong kernel. Press number 3" > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/used_flash_kernel
|
|
||||||
ln -sfn /sbin/init.sysvinit /sbin/init
|
|
||||||
echo "Flash " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot
|
|
||||||
sleep 8; reboot -f
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
||||||
mnttest="nouuid"
|
mnttest="nouuid"
|
||||||
if [ -e $NEOBOOT/bin/install ]; then
|
if [ -e $NEOBOOT/bin/install ]; then
|
||||||
@@ -41,7 +32,8 @@ if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ] ; then
|
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ] ; then
|
||||||
|
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||||
/bin/mount -t proc proc /proc > /dev/null 2>&1
|
/bin/mount -t proc proc /proc > /dev/null 2>&1
|
||||||
/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1
|
/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1
|
||||||
/sbin/depmod -Ae > /dev/null 2>&1
|
/sbin/depmod -Ae > /dev/null 2>&1
|
||||||
@@ -55,10 +47,6 @@ if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
|||||||
sleep 5; #reboot -f
|
sleep 5; #reboot -f
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
|
||||||
TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ $TARGET = "Flash" ]; then
|
if [ $TARGET = "Flash" ]; then
|
||||||
echo "BOOTNEO is booting image from " $TARGET
|
echo "BOOTNEO is booting image from " $TARGET
|
||||||
@@ -100,12 +88,12 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
|
||||||
echo "Wrong kernel. Press number 3" > $DEVICEBOOT$UPLOAD/.kernel/used_flash_kernel
|
echo "Wrong kernel. Press number 3" > $DEVICEBOOT$UPLOAD/.kernel/used_flash_kernel
|
||||||
ln -sfn /sbin/init.sysvinit /sbin/init
|
ln -sfn /sbin/init.sysvinit /sbin/init
|
||||||
echo "Flash " > $DEVICEBOOT$DIRECTORY/.neonextboot
|
echo "Flash " > $DEVICEBOOT$DIRECTORY/.neonextboot
|
||||||
echo "Error - NeoBoot he can not run it image !!! "
|
echo "Error - NeoBoot he can not run it image !!! "
|
||||||
echo "Restart STB - Back to Flash... "
|
echo "Restart STB - Back to Flash... "
|
||||||
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
|
|
||||||
sleep 10; #reboot -f
|
sleep 10; #reboot -f
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -37,9 +37,10 @@ else
|
|||||||
fi
|
fi
|
||||||
echo "Mount kernel filesystems ..."
|
echo "Mount kernel filesystems ..."
|
||||||
if [ `mount | grep /proc | wc -l` -lt 1 ]; then
|
if [ `mount | grep /proc | wc -l` -lt 1 ]; then
|
||||||
|
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||||
/bin/mount -a -t media
|
/bin/mount -a -t media
|
||||||
/bin/mount -t proc proc /proc > /dev/null 2>&1
|
/bin/mount -n -t proc proc /proc > /dev/null 2>&1
|
||||||
/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1
|
/bin/mount -n -t sysfs sysfs /sys > /dev/null 2>&1
|
||||||
/sbin/depmod -Ae > /dev/null 2>&1
|
/sbin/depmod -Ae > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user