mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
29 lines
457 B
Bash
Executable File
29 lines
457 B
Bash
Executable File
export LD_LIBRARY_PATH=/var/lib
|
|
export PATH=${PATH}:/var/bin:/var/plugins
|
|
|
|
# Simple Neutrino start script
|
|
|
|
# Neutrino's exit codes
|
|
ERROR=-1
|
|
NORMAL=0
|
|
SHUTDOWN=1
|
|
REBOOT=2
|
|
|
|
echo "Starting Neutrino"
|
|
|
|
cd /tmp
|
|
/bin/neutrino >/dev/null 2>&1; RET=$?
|
|
sync
|
|
|
|
echo "Neutrino exited with exit code $RET"
|
|
|
|
if [ $RET -eq $NORMAL ]; then
|
|
# do nothing
|
|
elif [ $RET -eq $SHUTDOWN ]; then
|
|
poweroff
|
|
elif [ $RET -eq $REBOOT ]; then
|
|
reboot
|
|
else # $RET -eq $ERROR
|
|
reboot -f
|
|
fi
|