Browse Source

- skel-root/ax: fix shutdown

master
vanhofen 7 years ago
parent
commit
792d947045
  1. 9
      skel-root/axtech/ax/etc/init.d/start_neutrino

9
skel-root/axtech/ax/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"
echo "Neutrino: $RET" > /dev/dbox/oled0
@ -26,4 +32,7 @@ done
if [ -e /tmp/.reboot ]; then # gets created by neutrino
echo "Reboot ..." > /dev/dbox/oled0
reboot
elif [ -e /tmp/.halt ]; then
echo "Shutdown ..." > /dev/dbox/oled0
poweroff
fi

Loading…
Cancel
Save