mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user