Browse Source

mwan3: improve route flushing on mwan3 stop

only attempt to flush routes for the relevant family

Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
lilik-openwrt-22.03
Aaron Goodman 4 years ago
committed by Florian Eckert
parent
commit
24e1504b0b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/mwan3/files/etc/init.d/mwan3

+ 1
- 1
net/mwan3/files/etc/init.d/mwan3 View File

@ -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


Loading…
Cancel
Save