mirror of
https://mojerepo.cf/NeoBoot/NeoBoot-9.git
synced 2025-12-20 23:49:41 +01:00
update 8.13
This commit is contained in:
@@ -1,11 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
TARGET=Flash
|
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 [ ! -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
|
||||||
@@ -37,7 +35,7 @@ if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
|||||||
ln -sfn /sbin/init.sysvinit /sbin/init
|
ln -sfn /sbin/init.sysvinit /sbin/init
|
||||||
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
|
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
|
||||||
echo "Error - Back to Flash... "
|
echo "Error - Back to Flash... "
|
||||||
sleep 5; reboot -f
|
sleep 5; #reboot -f
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
if [ -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
||||||
@@ -50,9 +48,8 @@ if [ $TARGET = "Flash" ]; then
|
|||||||
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi > /dev/null 2>&1
|
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi > /dev/null 2>&1
|
||||||
sleep 3
|
sleep 3
|
||||||
ln -sfn /sbin/init.sysvinit /sbin/init
|
ln -sfn /sbin/init.sysvinit /sbin/init
|
||||||
reboot -f
|
#reboot -f
|
||||||
else
|
else
|
||||||
|
|
||||||
######### test boot new imaga>>>>
|
######### test boot new imaga>>>>
|
||||||
VUMODEL=$( cat /proc/stb/info/vumodel )
|
VUMODEL=$( cat /proc/stb/info/vumodel )
|
||||||
BOXNAME=$( cat /etc/hostname)
|
BOXNAME=$( cat /etc/hostname)
|
||||||
@@ -61,13 +58,12 @@ else
|
|||||||
DEVICEBOOT=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
|
DEVICEBOOT=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
|
||||||
if [ -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_ok ]; then
|
if [ -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_ok ]; then
|
||||||
[ $PL ] && echo "Nie ma bledu, normalny start image..." || echo "No Error - Booting image normal..."
|
[ $PL ] && echo "Nie ma bledu, normalny start image..." || echo "No Error - Booting image normal..."
|
||||||
else
|
elif [ -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_boot_new_image ]; then
|
||||||
|
|
||||||
VUMODEL=`cat /proc/stb/info/vumodel`
|
|
||||||
BOXNAME=`cat /etc/hostname`
|
|
||||||
if [ -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_boot_new_image ]; then
|
|
||||||
echo "First start image - The first attempt to launch a new image... "; rm -f $DEVICEBOOT$DIRECTORY/$TARGET/.control_boot_new_image
|
echo "First start image - The first attempt to launch a new image... "; rm -f $DEVICEBOOT$DIRECTORY/$TARGET/.control_boot_new_image
|
||||||
else
|
else
|
||||||
|
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/boot/zImage.$BOXNAME ]; then
|
||||||
|
VUMODEL=`cat /proc/stb/info/vumodel`
|
||||||
|
BOXNAME=`cat /etc/hostname`
|
||||||
if [ ! -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_ok ] ; then
|
if [ ! -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_ok ] ; then
|
||||||
if [ $BOXNAME = "vuultimo4k" ] || [ $BOXNAME = "vusolo4k" ] || [ $BOXNAME = "vuuno4kse" ] || [ $BOXNAME = "vuuno4k" ]; then
|
if [ $BOXNAME = "vuultimo4k" ] || [ $BOXNAME = "vusolo4k" ] || [ $BOXNAME = "vuuno4kse" ] || [ $BOXNAME = "vuuno4k" ]; then
|
||||||
if [ -d /proc/stb ] ; then
|
if [ -d /proc/stb ] ; then
|
||||||
@@ -85,24 +81,24 @@ else
|
|||||||
dd if=$DEVICEBOOT$UPLOAD/.kernel/flash-kernel-$VUMODEL.bin of=/dev/mmcblk0p6
|
dd if=$DEVICEBOOT$UPLOAD/.kernel/flash-kernel-$VUMODEL.bin of=/dev/mmcblk0p6
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
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... "
|
||||||
sleep 5; reboot -f
|
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
|
||||||
|
sleep 10; #reboot -f
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
fi
|
|
||||||
######### test boot new image<<<<<
|
|
||||||
|
|
||||||
|
######### test boot new image<<<<<
|
||||||
if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ] ; then
|
if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ] ; then
|
||||||
rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
||||||
fi
|
fi
|
||||||
cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
||||||
|
|
||||||
#mount $NEODEVICE /media/neoboot
|
#mount $NEODEVICE /media/neoboot
|
||||||
|
|
||||||
if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ] ; then
|
if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ] ; then
|
||||||
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
|
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
|
||||||
for item in $orgimag; do
|
for item in $orgimag; do
|
||||||
@@ -127,13 +123,9 @@ else
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 0755 $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
chmod 0755 $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
||||||
#chattr -i $LOCATION$IMAGEBOOT/$TARGET/usr/bin/enigma2_pre_start.sh
|
|
||||||
echo "NeoBOOT created the file mount enigma2_pre_start.sh "
|
echo "NeoBOOT created the file mount enigma2_pre_start.sh "
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user