projects
/
feed
/
routing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8b613e
)
naywatch: fix mode without watchdog
author
Nick Hainke
<vincent@systemli.org>
Thu, 13 Jan 2022 07:46:31 +0000
(08:46 +0100)
committer
Nick Hainke
<vincent@systemli.org>
Thu, 13 Jan 2022 08:04:43 +0000
(09:04 +0100)
The if-condition was always evaluated to be true.
Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit
cf34c5a4a1ace3f8eeac2d2b9b8539e085e8fabf
)
naywatch/files/naywatch.sh
patch
|
blob
|
history
diff --git
a/naywatch/files/naywatch.sh
b/naywatch/files/naywatch.sh
index 8eea429d7ae4a066d159cabb8499376d7efcf933..e6d2fb75fce61e4f8d6ab6a10b2ea3c38d23032d 100644
(file)
--- a/
naywatch/files/naywatch.sh
+++ b/
naywatch/files/naywatch.sh
@@
-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