naywatch: add log when naywatch activates
authorNick Hainke <vincent@systemli.org>
Fri, 10 Jun 2022 06:46:28 +0000 (08:46 +0200)
committerNick Hainke <vincent@systemli.org>
Fri, 10 Jun 2022 08:25:43 +0000 (10:25 +0200)
Naywatch now prints
  naywatch: Naywatch Activated!
when becoming active.

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

index 78c8dd42cc4b4f92b1f357335e0a786dbedd6b50..73f5ff056085d3373efb44c4df90eb090ff29cb3 100644 (file)
@@ -88,6 +88,9 @@ no_neighbors() {
 log "Naywatch Started!"
 
 neighbors() {
+    if [ $ACTIVE -eq 0 ]; then
+        log "Naywatch Activated!"
+    fi
     ACTIVE=1
     NO_NEIGHBORS_COUNT=0
     if [ $USE_WATCHDOG -eq 1 ]; then