1
0
Fork 0
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:
Ycarus 2018-02-20 22:19:31 +01:00
parent f9adb2e523
commit 99881d1487
5 changed files with 18 additions and 21 deletions

View file

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