git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
81e6a8f
)
mwan3: fix wait conditions in mwan3track
author
Florian Eckert
<redacted>
Fri, 6 Nov 2020 08:07:08 +0000
(09:07 +0100)
committer
Florian Eckert
<redacted>
Fri, 6 Nov 2020 09:35:49 +0000
(10:35 +0100)
Will only run when no events are pending.
Signed-off-by: Aaron Goodman <redacted>
[ Update description and split into own commit ]
Signed-off-by: Florian Eckert <redacted>
net/mwan3/files/usr/sbin/mwan3track
patch
|
blob
|
history
diff --git
a/net/mwan3/files/usr/sbin/mwan3track
b/net/mwan3/files/usr/sbin/mwan3track
index 1cd9e97faa95eeb23b171bda252ca6edce8e1e15..d4a5f44abbc02bf60864d35d2e4580cc7a9489aa 100755
(executable)
--- a/
net/mwan3/files/usr/sbin/mwan3track
+++ b/
net/mwan3/files/usr/sbin/mwan3track
@@
-346,7
+346,7
@@
main() {
get_uptime > $MWAN3TRACK_STATUS_DIR/$INTERFACE/TIME
host_up_count=0
- if [ "${IFDOWN_EVENT}" -
ne 0 ] && [ "${IFUP_EVENT}" -ne
0 ]; then
+ if [ "${IFDOWN_EVENT}" -
eq 0 ] && [ "${IFUP_EVENT}" -eq
0 ]; then
sleep "${sleep_time}" &
SLEEP_PID=$!
wait
git clone https://git.99rst.org/PROJECT