Fix ip rules
This commit is contained in:
parent
5e7de5ef5a
commit
4cb23eb19f
@ -36,13 +36,15 @@ function start() {
|
||||
done
|
||||
|
||||
for ip in $(get_destination_ips) ; do
|
||||
ip rule add to $destination lookup bonding-pwan prio 1900
|
||||
ip rule add to $ip lookup bonding-pwan prio 1900
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
function stop() {
|
||||
log_progress_msg $NAME
|
||||
if [ "$1" != quiet ] ; then
|
||||
log_progress_msg $NAME
|
||||
fi
|
||||
|
||||
while ip rule | grep -qe '^1900:' ; do
|
||||
ip rule del prio 1900 2>/dev/null ||:
|
||||
@ -68,7 +70,7 @@ test -f /lib/lsb/init-functions && . /lib/lsb/init-functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
stop
|
||||
stop quiet
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
|
Loading…
x
Reference in New Issue
Block a user