mirror of
https://git.openwrt.org/feed/routing.git
synced 2024-06-18 21:23:57 +02:00
naywatch: fix mode without watchdog
The if-condition was always evaluated to be true.
Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit cf34c5a4a1
)
This commit is contained in:
parent
c8b613e11c
commit
440e7af339
|
@ -71,7 +71,7 @@ no_neighbors() {
|
|||
return 0
|
||||
fi
|
||||
|
||||
if [ $SAVE_LOGS ]; then
|
||||
if [ $SAVE_LOGS -eq 1 ]; then
|
||||
log "Saving Logs!"
|
||||
write_logs
|
||||
fi
|
||||
|
@ -85,18 +85,18 @@ log "Naywatch Started!"
|
|||
|
||||
neighbors() {
|
||||
ACTIVE=1
|
||||
if [ $USE_WATCHDOG ]; then
|
||||
if [ $USE_WATCHDOG -eq 1 ]; then
|
||||
echo 1 >&3
|
||||
fi
|
||||
}
|
||||
|
||||
not_active() {
|
||||
if [ $USE_WATCHDOG ]; then
|
||||
if [ $USE_WATCHDOG -eq 1 ]; then
|
||||
echo 1 >&3
|
||||
fi
|
||||
}
|
||||
|
||||
if [ $USE_WATCHDOG ]; then
|
||||
if [ $USE_WATCHDOG -eq 1 ]; then
|
||||
activate_watchdog
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user