From 32c4841ec9a7aadd661acdbd5e33646c8a3e6059 Mon Sep 17 00:00:00 2001 From: gutosie Date: Mon, 11 Feb 2019 20:44:02 +0200 Subject: [PATCH] Delete rebootbot --- bin/rebootbot | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 bin/rebootbot diff --git a/bin/rebootbot b/bin/rebootbot deleted file mode 100644 index a9bb61e..0000000 --- a/bin/rebootbot +++ /dev/null @@ -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 \ No newline at end of file