From bdefc8348b1195114832f875678f267749d4eedf Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Fri, 10 Jun 2022 08:46:28 +0200 Subject: [PATCH] naywatch: add log when naywatch activates Naywatch now prints naywatch: Naywatch Activated! when becoming active. Signed-off-by: Nick Hainke (cherry picked from commit 09d5ceb9230b907029a3e09858ef181ff85e3913) --- naywatch/files/naywatch.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/naywatch/files/naywatch.sh b/naywatch/files/naywatch.sh index 78c8dd4..73f5ff0 100644 --- a/naywatch/files/naywatch.sh +++ b/naywatch/files/naywatch.sh @@ -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 -- 2.30.2