autorun.sh: small changes to run on all platforms

Origin commit data
------------------
Commit: 92ff8c9636
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-08-03 (Sat, 03 Aug 2019)

Origin message was:
------------------
- autorun.sh: small changes to run on all platforms
This commit is contained in:
vanhofen
2019-08-03 00:44:33 +02:00
parent 6247fc82c9
commit 8c8b763dea

View File

@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
export PATH=${PATH}:/var/bin:/var/plugins # Simple Neutrino start script
# Neutrino's exit codes # Neutrino's exit codes
ERROR=-1 ERROR=-1
@@ -19,13 +19,9 @@ echo "Neutrino exited with exit code $RET"
if [ $RET -eq $NORMAL ]; then if [ $RET -eq $NORMAL ]; then
# do nothing # do nothing
elif [ $RET -eq $SHUTDOWN ]; then elif [ $RET -eq $SHUTDOWN ]; then
dt -t"Shutdown ..."
poweroff poweroff
elif [ $RET -eq $REBOOT ]; then elif [ $RET -eq $REBOOT ]; then
dt -t"Reboot ..."
reboot reboot
else else # $RET -eq $ERROR
dt -t"Panic ..."
sleep 5
reboot -f reboot -f
fi fi