This commit is contained in:
gutosie
2019-02-17 13:49:24 +01:00
committed by GitHub
parent c7c2787b36
commit df8dc600d1
5 changed files with 6 additions and 20 deletions

Binary file not shown.

View File

@@ -105,19 +105,15 @@ else
######### test boot new imaga>>>>
if [ -e $IMAGE/$TARGET/.control_ok ]; then
[ $PL ] && echo "Nie ma bledu, normalny start image..." || echo "No Error - Booting image normal..."
#echo "No Error - Booting image normal... "
sync
else
if [ -e $IMAGE/$TARGET/.control_boot_new_image ]; then
echo "First start image - The first attempt to launch a new image... "; rm -f $IMAGE/$TARGET/.control_boot_new_image
sync
else
if [ ! -e $IMAGE/$TARGET/.control_ok ] ; then
echo " ***** gutosie _(*_*)_ TEST FIRST BOOT IMAGE - rebootbot ***** "
echo "Reinstall kernel -Press number 3" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > /media/neoboot/ImageBoot/.neonextboot
sync
echo "Error - NeoBoot he can not run it image !!! "
echo "Restart STB - Back to Flash... "
sleep 8; reboot -f
@@ -171,7 +167,7 @@ else
echo " Back to image Flash... "
rm -f $IMAGEBOOT; touch $IMAGEBOOT; echo "Flash " > $IMAGEBOOT
/usr/bin/showiframe $NEOBOOT/error.mvi > /dev/null 2>&1
sync; sleep 10; exec /sbin/init.sysvinit $1
sleep 10; exec /sbin/init.sysvinit $1
fi
exit 0
fi

View File

@@ -210,7 +210,7 @@ else
echo "Halt init image - " $TARGETIMAGE
echo "Start image Flash... "
$NEOBOOT/bh.mvi > /dev/null 2>&1
sync; sleep 1
sleep 1
exec /sbin/init.sysvinit $*
exit 0
else
@@ -225,19 +225,16 @@ else
######### test boot new imaga>>>>
if [ -e $IMAGE/$TARGET/.control_ok ]; then
[ $PL ] && echo "Nie ma bledu, normalny start image..." || echo "No Error - Booting image normal..."
#echo "No Error - Booting image normal... "
sync
else
if [ -e $IMAGE/$TARGET/.control_boot_new_image ]; then
echo "First start image - The first attempt to launch a new image... "; rm -f $IMAGE/$TARGET/.control_boot_new_image
sync
else
if [ ! -e $IMAGE/$TARGET/.control_ok ] ; then
echo " ***** gutosie _(*_*)_ TEST FIRST BOOT IMAGE - rebootbot ***** "
echo "Reinstall kernel -Press number 3" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > /media/neoboot/ImageBoot/.neonextboot
sync
echo "Error - NeoBoot he can not run it image !!! "
echo "Restart STB - Back to Flash... "
sleep 8; reboot -f
@@ -330,7 +327,7 @@ else
echo " Powrot do image Flash... "
rm -f $IMAGEBOOT; touch $IMAGEBOOT; echo "Flash " >> $IMAGEBOOT
/usr/bin/showiframe $NEOBOOT/error.mvi > /dev/null 2>&1
sync; sleep 10; exec /sbin/init.sysvinit $*
sleep 10; exec /sbin/init.sysvinit $*
fi
exit 0

View File

@@ -81,19 +81,16 @@ else
######### test boot new imaga>>>>
if [ -e $IMAGE/$TARGET/.control_ok ]; then
[ $PL ] && echo "Nie ma bledu, normalny start image..." || echo "No Error - Booting image normal..."
#echo "No Error - Booting image normal... "
sync
else
if [ -e $IMAGE/$TARGET/.control_boot_new_image ]; then
echo "First start image - The first attempt to launch a new image... "; rm -f $IMAGE/$TARGET/.control_boot_new_image
sync
else
if [ ! -e $IMAGE/$TARGET/.control_ok ] ; then
echo " ***** gutosie _(*_*)_ TEST FIRST BOOT IMAGE - rebootbot ***** "
echo "Reinstall kernel -Press number 3" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > /media/neoboot/ImageBoot/.neonextboot
sync
echo "Error - NeoBoot he can not run it image !!! "
echo "Restart STB - Back to Flash... "
sleep 8; reboot -f
@@ -149,7 +146,7 @@ else
echo " Sprawdz poprawnosc rozpakowanych katalogow w wybranym image. "
echo " Powrot do image Flash... "
rm -f $IMAGEBOOT; touch $IMAGEBOOT; echo "Flash " >> $IMAGEBOOT
sync; sleep 10; exec /sbin/init.sysvinit $1
sleep 10; exec /sbin/init.sysvinit $1
fi
exit 0
fi

View File

@@ -3,7 +3,6 @@
if [ ! -e /media/neoboot/ImageBoot/.neonextboot ]; then
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > /media/neoboot/ImageBoot/.neonextboot
sync
echo "Error - Back to Flash... "
sleep 5; reboot -f
fi
@@ -18,18 +17,15 @@ $IMAGE/$TARGET
if [ -e $IMAGE/$TARGET/.control_ok ]; then
echo "No Error - Booting image normal ... "; sleep 2
sync
else
if [ -e $IMAGE/$TARGET/.control_boot_new_image ]; then
echo "First start image - Proba uruchomienia nowego image... "; sleep 5; rm -r -f $IMAGE/$TARGET/.control_boot_new_image
sync
else
if [ ! -e $IMAGE/$TARGET/.control_ok ] ; then
echo " ***** gutosie _(*_*)_ TEST FIRST BOOT IMAGE - rebootbot ***** "
echo "Reinstall kernel -Press number 3" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > /media/neoboot/ImageBoot/.neonextboot
sync
echo "Error - NeoBoot nie potrafi uruchomic tego image !!! "
echo "Restart STB - Back to Flash... "
sleep 7; reboot -f