Browse Source

- skel-root/coolstream: prepare for new neutrino exit behaviour

master
vanhofen 8 years ago
parent
commit
da9290c77c
  1. 9
      skel-root/coolstream/hd1/etc/init.d/start_neutrino
  2. 9
      skel-root/coolstream/hd2/etc/init.d/start_neutrino

9
skel-root/coolstream/hd1/etc/init.d/start_neutrino

@ -5,6 +5,12 @@ touch /tmp/norestart
until neutrino; do
RET=$?
# shutdown
if [ $RET -eq 1 ]; then
touch /tmp/.halt
break
fi
echo "Neutrino exited with exit code $RET"
dt -t"NEUTRINO: $RET"
@ -22,4 +28,7 @@ done
if [ -e /tmp/.reboot ]; then # gets created by neutrino
dt -t" ..REBOOT.."
reboot
elif [ -e /tmp/.halt ]; then
dt -t"SHUTDOWN"
poweroff
fi

9
skel-root/coolstream/hd2/etc/init.d/start_neutrino

@ -9,6 +9,12 @@ fi
until neutrino; do
RET=$?
# shutdown
if [ $RET -eq 1 ]; then
touch /tmp/.halt
break
fi
echo "Neutrino exited with exit code $RET"
dt -t"NEUTRINO: $RET"
@ -26,4 +32,7 @@ done
if [ -e /tmp/.reboot ]; then # gets created by neutrino
dt -t" ..REBOOT.."
reboot
elif [ -e /tmp/.halt ]; then
dt -t"SHUTDOWN"
poweroff
fi

Loading…
Cancel
Save