Browse Source

- start-neutrino: get sure we don't have the /tmp/.timer file when rebooting

master
vanhofen 7 years ago
parent
commit
b672843087
  1. 3
      skel-root/armbox/hd51/etc/init.d/start_neutrino
  2. 3
      skel-root/coolstream/hd1/etc/init.d/start_neutrino
  3. 3
      skel-root/coolstream/hd2/etc/init.d/start_neutrino

3
skel-root/armbox/hd51/etc/init.d/start_neutrino

@ -14,7 +14,7 @@ REBOOT_ON_ERROR=false
do_cleanup() {
# remove files created by neutrino
rm -f /tmp/.reboot /tmp/.timer
rm -f /tmp/.timer
}
do_shutdown() {
@ -40,6 +40,7 @@ while true; do
do_shutdown
break
elif [ $RET -eq 2 ]; then
do_cleanup
do_reboot
break
fi

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

@ -7,7 +7,7 @@ REBOOT_ON_ERROR=true
do_cleanup() {
# remove files created by neutrino
rm -f /tmp/.reboot /tmp/.timer
rm -f /tmp/.timer
}
do_shutdown() {
@ -33,6 +33,7 @@ while true; do
do_shutdown
break
elif [ $RET -eq 2 ]; then
do_cleanup
do_reboot
break
fi

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

@ -11,7 +11,7 @@ REBOOT_ON_ERROR=true
do_cleanup() {
# remove files created by neutrino
rm -f /tmp/.reboot /tmp/.timer
rm -f /tmp/.timer
}
do_shutdown() {
@ -37,6 +37,7 @@ while true; do
do_shutdown
break
elif [ $RET -eq 2 ]; then
do_cleanup
do_reboot
break
fi

Loading…
Cancel
Save