From ae3c2fe47beeef55e226638812ed3e77cfb3e6e1 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 23 Jan 2024 20:21:42 +0100 Subject: [PATCH] Stop/Start multipath after route set --- mptcp/files/etc/init.d/mptcp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mptcp/files/etc/init.d/mptcp b/mptcp/files/etc/init.d/mptcp index 049176472..360d757cb 100755 --- a/mptcp/files/etc/init.d/mptcp +++ b/mptcp/files/etc/init.d/mptcp @@ -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)" = "" ] && {