Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
naywatch: add log when naywatch activates
Browse files Browse the repository at this point in the history
Naywatch now prints
  naywatch: Naywatch Activated!
when becoming active.

Signed-off-by: Nick Hainke <vincent@systemli.org>
  • Loading branch information
PolynomialDivision authored and 1582130940 committed Nov 12, 2022
1 parent d4a898f commit 15883ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions naywatch/files/naywatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15883ec

Please sign in to comment.