Delete rebootbot

This commit is contained in:
gutosie
2019-02-11 20:44:02 +02:00
committed by GitHub
parent c1f781e79c
commit 32c4841ec9

View File

@@ -1,38 +0,0 @@
#!/bin/sh
echo " ***** gutosie _(*_*)_ TEST FIRST BOOT IMAGE - rebootbot ***** "
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
IMAGE=/media/neoboot/ImageBoot
IMAGEBOOT=/media/neoboot/ImageBoot/.neonextboot
TARGET=Flash
if [ -f $IMAGEBOOT ]; then
TARGET=`cat $IMAGEBOOT`
fi
$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
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
fi
fi
fi
return 1