aboutsummaryrefslogtreecommitdiff
path: root/net/mwan3/files
diff options
context:
space:
mode:
authorAaron Goodman <aaronjg@stanford.edu>2020-12-13 09:27:42 -0500
committerFlorian Eckert <fe@dev.tdt.de>2020-12-16 09:32:33 +0100
commit24e1504b0b6040b70e9f1de4df6d6af899c0f4a3 (patch)
treebab0188fb0a17a33631285ce4a5fca5f1dea1087 /net/mwan3/files
parent21ac1b2c3ebf4735644366e22dccba482a92d558 (diff)
mwan3: improve route flushing on mwan3 stop
only attempt to flush routes for the relevant family Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
Diffstat (limited to 'net/mwan3/files')
-rwxr-xr-xnet/mwan3/files/etc/init.d/mwan32
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mwan3/files/etc/init.d/mwan3 b/net/mwan3/files/etc/init.d/mwan3
index 743beb152..fe97b6a08 100755
--- a/net/mwan3/files/etc/init.d/mwan3
+++ b/net/mwan3/files/etc/init.d/mwan3
@@ -72,7 +72,7 @@ stop_service() {
IP="$IP6"
fi
- for tid in $(ip route list table all | sed -ne 's/.*table \([0-9]\+\).*/\1/p' | sort -u); do
+ for tid in $($IP route list table all | sed -ne 's/.*table \([0-9]\+\).*/\1/p' | sort -u); do
[ $tid -gt $MWAN3_INTERFACE_MAX ] && continue
$IP route flush table $tid &> /dev/null
done