naywatch: fix reboot_now
authorNick Hainke <vincent@systemli.org>
Fri, 1 Apr 2022 08:16:56 +0000 (10:16 +0200)
committerNick Hainke <vincent@systemli.org>
Fri, 1 Apr 2022 08:23:56 +0000 (10:23 +0200)
Naywatch should first try to reboot normally, and if that does not work
do a hard reboot. However, the hard reboot was never called.

Signed-off-by: Nick Hainke <vincent@systemli.org>
naywatch/files/naywatch.sh

index 362746493e885e6d9a2f43c63d76f49eaecdb1a0..78c8dd42cc4b4f92b1f357335e0a786dbedd6b50 100644 (file)
@@ -81,7 +81,7 @@ no_neighbors() {
     fi
 
     if [ $USE_WATCHDOG -eq 0 ] && [ $NO_NEIGHBORS_COUNT -gt $MIN_KICK ]; then
-        reboot_now
+        reboot_now 10
     fi
 }