1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Stop/Start multipath after route set

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-01-23 20:21:42 +01:00
parent e79804444f
commit ae3c2fe47b

View file

@ -406,6 +406,7 @@ interface_multipath_settings() {
fi
if [ "$(uci -q get openmptcprouter.settings.force_multipath)" != "0" ]; then
multipath "$iface" "off"
if ([ "$mode" = "master" ] || [ "$mode" = "on" ]) && [ -z "$(multipath $iface | grep default)" ]; then
logger -t "MPTCP" "Set $iface to $mode"
multipath "$iface" "on"
@ -511,7 +512,7 @@ start_service() {
local id count intfmaster
. /lib/functions.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
[ -n "$(ubus call system board | jsonfilter -e '@.board_name' | grep '3-model-b')" ] && [ "$(ip link show eth0 | grep UP)" = "" ] && {