mwan3: fix string check for active_tbls
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 8 Dec 2020 14:26:01 +0000 (15:26 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 22 Dec 2020 07:38:30 +0000 (08:38 +0100)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/usr/sbin/mwan3rtmon

index f916f4a9c33b5292b863293c68faeed0bc295909..96a774783d6f9e257f4357e5798980819b72b1d2 100755 (executable)
@@ -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