autorun.sh: small changes to run on all platforms

Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2019-08-03 00:44:33 +02:00
parent d0f7105664
commit 08fdd3a598

View File

@@ -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