mwan3: fix logical/typo bug in mwan3rtmon

This bug was introduced since dd206b7d0b
mwan3_remon_ipv4 and mwan3_remon_ipv6 is command to run not a variable
I add some comments on them hopefully people will notice it

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
This commit is contained in:
Chen Minqiang
2019-03-22 04:26:15 +08:00
parent 6d65505c26
commit a004d07632
3 changed files with 8 additions and 4 deletions
+3 -3
View File
@@ -25,14 +25,14 @@ main() {
sleep 3
while true; do
mwan3_lock "service" "mwan3rtmon"
[ mwan3_remon_ipv4 = "1" ] || \
[ mwan3_rtmon_ipv6 = "1" ] && break
mwan3_rtmon_ipv4 || mwan3_rtmon_ipv6
ret=$?
mwan3_unlock "service" "mwan3rtmon"
[ "$ret" = "0" ] || break
[ "$rtmon_interval" = "0" ] && break
sleep "$rtmon_interval" &
wait
done
mwan3_unlock "service" "mwan3rtmon"
}
main "$@"