mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
Stop/Start multipath after route set
This commit is contained in:
parent
e79804444f
commit
ae3c2fe47b
1 changed files with 2 additions and 1 deletions
|
@ -406,6 +406,7 @@ interface_multipath_settings() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(uci -q get openmptcprouter.settings.force_multipath)" != "0" ]; then
|
if [ "$(uci -q get openmptcprouter.settings.force_multipath)" != "0" ]; then
|
||||||
|
multipath "$iface" "off"
|
||||||
if ([ "$mode" = "master" ] || [ "$mode" = "on" ]) && [ -z "$(multipath $iface | grep default)" ]; then
|
if ([ "$mode" = "master" ] || [ "$mode" = "on" ]) && [ -z "$(multipath $iface | grep default)" ]; then
|
||||||
logger -t "MPTCP" "Set $iface to $mode"
|
logger -t "MPTCP" "Set $iface to $mode"
|
||||||
multipath "$iface" "on"
|
multipath "$iface" "on"
|
||||||
|
@ -511,7 +512,7 @@ start_service() {
|
||||||
local id count intfmaster
|
local id count intfmaster
|
||||||
. /lib/functions.sh
|
. /lib/functions.sh
|
||||||
. /lib/functions/network.sh
|
. /lib/functions/network.sh
|
||||||
[ -n "$intf" ] && multipath "${intf}" off 2>&1 >/dev/null
|
#[ -n "$intf" ] && multipath "${intf}" off 2>&1 >/dev/null
|
||||||
global_multipath_settings
|
global_multipath_settings
|
||||||
|
|
||||||
[ -n "$(ubus call system board | jsonfilter -e '@.board_name' | grep '3-model-b')" ] && [ "$(ip link show eth0 | grep UP)" = "" ] && {
|
[ -n "$(ubus call system board | jsonfilter -e '@.board_name' | grep '3-model-b')" ] && [ "$(ip link show eth0 | grep UP)" = "" ] && {
|
||||||
|
|
Loading…
Reference in a new issue