From 94a25dbd92adcf070e10a508f5103d6914449f2a Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 6 Nov 2020 09:07:08 +0100 Subject: [PATCH] mwan3: fix wait conditions in mwan3track Will only run when no events are pending. Signed-off-by: Aaron Goodman [ Update description and split into own commit ] Signed-off-by: Florian Eckert --- net/mwan3/files/usr/sbin/mwan3track | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mwan3/files/usr/sbin/mwan3track b/net/mwan3/files/usr/sbin/mwan3track index 1cd9e97faa..d4a5f44abb 100755 --- 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 -- 2.30.2