From 2f58865a01c8ecaa6fc8e715ed7ecd09a0181938 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 8 Dec 2020 15:26:01 +0100 Subject: [PATCH] mwan3: fix string check for active_tbls Signed-off-by: Florian Eckert --- net/mwan3/files/usr/sbin/mwan3rtmon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mwan3/files/usr/sbin/mwan3rtmon b/net/mwan3/files/usr/sbin/mwan3rtmon index f916f4a9c..96a774783 100755 --- a/net/mwan3/files/usr/sbin/mwan3rtmon +++ b/net/mwan3/files/usr/sbin/mwan3rtmon @@ -56,7 +56,7 @@ mwan3_add_all_routes() tid=0 active_tbls=" " config_foreach add_active_tbls interface - [ $active_tbls = " " ] && return + [ "$active_tbls" = " " ] && return mwan3_get_routes | while read -r route_line; do mwan3_route_line_dev "tid" "$route_line" "$ipv" if [ -n "$tid" ] && [ -z "${active_tbls##* $tid *}" ]; then