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
|
#!/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
|
||||||
|
Reference in New Issue
Block a user