naywatch: fix mode without watchdog
The if-condition was always evaluated to be true. Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
parent
576967a2a3
commit
cf34c5a4a1
1 changed files with 4 additions and 4 deletions
|
@ -71,7 +71,7 @@ no_neighbors() {
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SAVE_LOGS ]; then
|
if [ $SAVE_LOGS -eq 1 ]; then
|
||||||
log "Saving Logs!"
|
log "Saving Logs!"
|
||||||
write_logs
|
write_logs
|
||||||
fi
|
fi
|
||||||
|
@ -85,18 +85,18 @@ log "Naywatch Started!"
|
||||||
|
|
||||||
neighbors() {
|
neighbors() {
|
||||||
ACTIVE=1
|
ACTIVE=1
|
||||||
if [ $USE_WATCHDOG ]; then
|
if [ $USE_WATCHDOG -eq 1 ]; then
|
||||||
echo 1 >&3
|
echo 1 >&3
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
not_active() {
|
not_active() {
|
||||||
if [ $USE_WATCHDOG ]; then
|
if [ $USE_WATCHDOG -eq 1 ]; then
|
||||||
echo 1 >&3
|
echo 1 >&3
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $USE_WATCHDOG ]; then
|
if [ $USE_WATCHDOG -eq 1 ]; then
|
||||||
activate_watchdog
|
activate_watchdog
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue