mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fixes and use nping for failover
This commit is contained in:
parent
f9adb2e523
commit
99881d1487
5 changed files with 18 additions and 21 deletions
|
@ -14,10 +14,10 @@ set_route() {
|
|||
interface_if=$(uci -q get "network.$INTERFACE.ifname")
|
||||
_log "Replace default route by $interface_gw dev $interface_if"
|
||||
ip route replace default scope global nexthop via $interface_gw dev $interface_if && SETROUTE=true
|
||||
sleep `expr $RANDOM % 10`
|
||||
fi
|
||||
}
|
||||
|
||||
sleep `expr $RANDOM % 10`
|
||||
|
||||
# Get the current multipath status
|
||||
multipath_status="off"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue