fix reboot

This commit is contained in:
pvizeli 2017-03-24 16:30:49 +01:00
parent 55000d11b9
commit 634956ff45

View File

@ -329,7 +329,7 @@ if [ $RESINHUP_EXIT -eq 0 ] || [ $RESINHUP_EXIT -eq 2 ] || [ $RESINHUP_EXIT -eq
# Everything is fine - Reboot
if [ "$NOREBOOT" == "no" ]; then
log "Rebooting board in 5 seconds..."
nohup bash -c " /bin/sleep 5 ; /sbin/reboot " &
nohup bash -c " /bin/sleep 5 ; /sbin/reboot " > /dev/null 2>&1 &
else
log "'No-reboot' requested."
fi