From b2141a8217099832738950c573c03fca776fb9d6 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 31 Jul 2013 15:06:48 +0400 Subject: [PATCH] autorun.sh: add reboot Conflicts: autorun.sh --- autorun.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/autorun.sh b/autorun.sh index 52b20488c..02bd8d175 100755 --- a/autorun.sh +++ b/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