From 8c8b763dea5d07ed012c85353e420b3916292f88 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 3 Aug 2019 00:44:33 +0200 Subject: [PATCH] autorun.sh: small changes to run on all platforms Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/92ff8c9636b195f15d4f0faeb92fff37b55aa9dd Author: vanhofen Date: 2019-08-03 (Sat, 03 Aug 2019) Origin message was: ------------------ - autorun.sh: small changes to run on all platforms --- autorun.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/autorun.sh b/autorun.sh index b20ef463d..ecee284da 100755 --- a/autorun.sh +++ b/autorun.sh @@ -1,6 +1,6 @@ #!/bin/sh -export PATH=${PATH}:/var/bin:/var/plugins +# Simple Neutrino start script # Neutrino's exit codes ERROR=-1 @@ -19,13 +19,9 @@ echo "Neutrino exited with exit code $RET" if [ $RET -eq $NORMAL ]; then # do nothing elif [ $RET -eq $SHUTDOWN ]; then - dt -t"Shutdown ..." poweroff elif [ $RET -eq $REBOOT ]; then - dt -t"Reboot ..." reboot -else - dt -t"Panic ..." - sleep 5 +else # $RET -eq $ERROR reboot -f fi