Browse Source

- neutrino: add restart

master
vanhofen 3 years ago
parent
commit
9605c35692
  1. 8
      package/neutrino/files/start_neutrino

8
package/neutrino/files/start_neutrino

@ -8,6 +8,7 @@ ERROR=-1
NORMAL=0 NORMAL=0
SHUTDOWN=1 SHUTDOWN=1
REBOOT=2 REBOOT=2
RESTART=3
# if neutrino crashes, just restart it or reboot the box? # if neutrino crashes, just restart it or reboot the box?
case "$(get_boxmodel)" in case "$(get_boxmodel)" in
@ -34,6 +35,10 @@ do_reboot() {
reboot reboot
} }
do_restart() {
display_msg "N: RESTART"
}
while true; do while true; do
do_cleanup do_cleanup
@ -55,6 +60,9 @@ while true; do
do_cleanup do_cleanup
do_reboot do_reboot
break break
elif [ $RET -eq $RESTART ]; then
do_restart
continue
fi fi
display_msg "NEUTRINO: $RET" display_msg "NEUTRINO: $RET"

Loading…
Cancel
Save