naywatch: add log when naywatch activates
Naywatch now prints
naywatch: Naywatch Activated!
when becoming active.
Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 09d5ceb923
)
This commit is contained in:
parent
b7a8391b77
commit
4b2b6b3d2b
1 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,9 @@ no_neighbors() {
|
||||||
log "Naywatch Started!"
|
log "Naywatch Started!"
|
||||||
|
|
||||||
neighbors() {
|
neighbors() {
|
||||||
|
if [ $ACTIVE -eq 0 ]; then
|
||||||
|
log "Naywatch Activated!"
|
||||||
|
fi
|
||||||
ACTIVE=1
|
ACTIVE=1
|
||||||
NO_NEIGHBORS_COUNT=0
|
NO_NEIGHBORS_COUNT=0
|
||||||
if [ $USE_WATCHDOG -eq 1 ]; then
|
if [ $USE_WATCHDOG -eq 1 ]; then
|
||||||
|
|
Loading…
Reference in a new issue