summaryrefslogtreecommitdiff
path: root/naywatch
diff options
context:
space:
mode:
authorNick Hainke <vincent@systemli.org>2022-04-01 10:16:56 +0200
committerNick Hainke <vincent@systemli.org>2022-04-01 10:32:07 +0200
commit76e044bd514310c7a93f8e372374cb414f721980 (patch)
tree2d232011c20349fd1cbb9f9cfe6ca4079885c188 /naywatch
parentbf03ceb2024611e430228a8c237e7bf88c1c6c1e (diff)
naywatch: fix reboot_now
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> (cherry picked from commit 65f747a8bcf19e0271e6bbe04c2432f9a93cc406)
Diffstat (limited to 'naywatch')
-rw-r--r--naywatch/files/naywatch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/naywatch/files/naywatch.sh b/naywatch/files/naywatch.sh
index 3627464..78c8dd4 100644
--- a/naywatch/files/naywatch.sh
+++ b/naywatch/files/naywatch.sh
@@ -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
}