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:
c059c28
)
mwan3: lock critical mwan3rtmon section
author
Florian Eckert
<redacted>
Tue, 15 Jan 2019 09:20:02 +0000
(10:20 +0100)
committer
Florian Eckert
<redacted>
Tue, 22 Jan 2019 13:28:58 +0000
(14:28 +0100)
Signed-off-by: Florian Eckert <redacted>
net/mwan3/files/usr/sbin/mwan3rtmon
patch
|
blob
|
history
diff --git
a/net/mwan3/files/usr/sbin/mwan3rtmon
b/net/mwan3/files/usr/sbin/mwan3rtmon
index afdc96d1a0109f4ae2656028707075072416fa29..f8e6ec081b748104e46ada652e374ee156fd526b 100755
(executable)
--- a/
net/mwan3/files/usr/sbin/mwan3rtmon
+++ b/
net/mwan3/files/usr/sbin/mwan3rtmon
@@
-23,11
+23,16
@@
main() {
config_get rtmon_interval globals rtmon_interval '5'
sleep 3
- while mwan3_rtmon_ipv4 || mwan3_rtmon_ipv6; do
+ while true; do
+ mwan3_lock
+ [ mwan3_remon_ipv4 = "1" ] || \
+ [ mwan3_rtmon_ipv6 = "1" ] && break
+ mwan3_unlock
[ "$rtmon_interval" = "0" ] && break
sleep "$rtmon_interval" &
wait
done
+ mwan3_unlock
}
main "$@"
git clone https://git.99rst.org/PROJECT