mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
autorun.sh: add reboot
Conflicts:
autorun.sh
Origin commit data
------------------
Branch: ni/coolstream
Commit: b2141a8217
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-07-31 (Wed, 31 Jul 2013)
------------------
This commit was generated by Migit
This commit is contained in:
15
autorun.sh
15
autorun.sh
@@ -3,6 +3,17 @@ export PATH=${PATH}:/opt/bin:/opt/usr/bin
|
||||
|
||||
echo "### Starting NEUTRINO ###"
|
||||
|
||||
cd /opt/bin
|
||||
./neutrino &
|
||||
cd /tmp
|
||||
/bin/neutrino > /dev/null 2> /dev/null
|
||||
|
||||
/bin/sync
|
||||
/bin/sync
|
||||
|
||||
if [ -e /tmp/.reboot ] ; then
|
||||
/bin/dt -t"Rebooting..."
|
||||
/sbin/reboot -f
|
||||
else
|
||||
/bin/dt -t"Panic..."
|
||||
sleep 5
|
||||
/sbin/reboot -f
|
||||
fi
|
||||
|
Reference in New Issue
Block a user