diff options
author | Aaron Goodman <aaronjg@stanford.edu> | 2020-12-13 09:27:42 -0500 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2020-12-16 09:32:33 +0100 |
commit | 24e1504b0b6040b70e9f1de4df6d6af899c0f4a3 (patch) | |
tree | bab0188fb0a17a33631285ce4a5fca5f1dea1087 /net/mwan3/files | |
parent | 21ac1b2c3ebf4735644366e22dccba482a92d558 (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-x | net/mwan3/files/etc/init.d/mwan3 | 2 |
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 |