Browse Source

mwan3: fix wait conditions in mwan3track

Will only run when no events are pending.

Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
[ Update description and split into own commit ]
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 4 years ago
parent
commit
94a25dbd92
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/mwan3/files/usr/sbin/mwan3track

+ 1
- 1
net/mwan3/files/usr/sbin/mwan3track View File

@ -346,7 +346,7 @@ main() {
get_uptime > $MWAN3TRACK_STATUS_DIR/$INTERFACE/TIME get_uptime > $MWAN3TRACK_STATUS_DIR/$INTERFACE/TIME
host_up_count=0 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 "${sleep_time}" &
SLEEP_PID=$! SLEEP_PID=$!
wait wait


Loading…
Cancel
Save