From 432215a329781f50e308c4b5f76e74cd84ca1d7b Mon Sep 17 00:00:00 2001 From: Ycarus Date: Wed, 21 Feb 2018 15:05:53 +0100 Subject: [PATCH] fix --- mptcp/files/usr/share/omr/post-tracking.d/post-tracking | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mptcp/files/usr/share/omr/post-tracking.d/post-tracking b/mptcp/files/usr/share/omr/post-tracking.d/post-tracking index cd999c2d4..9919bf418 100755 --- a/mptcp/files/usr/share/omr/post-tracking.d/post-tracking +++ b/mptcp/files/usr/share/omr/post-tracking.d/post-tracking @@ -7,9 +7,9 @@ set_route() { PREVINTERFACE=$2 multipath_config=$(uci -q get "network.$INTERFACE.multipath" || echo "off") multipath_current_config=$(multipath $INTERFACE | grep deactivated) - #if [ "$multipath_config" != "off" ] && [ "$SETROUTE" != true ] && [ "$multipath_current_config" = "" ]; then + if [ "$multipath_config" != "off" ] && [ "$SETROUTE" != true ] && [ "$INTERFACE" != "$PREVINTERFACE" ] && [ "$multipath_current_config" = "" ]; then #if [ "$multipath_config" != "off" ] && [ "$SETROUTE" != true ]; then - if [ "$multipath_config" != "off" ] &&[ "$INTERFACE" != "$PREVINTERFACE" ] && [ "$SETROUTE" != true ]; then + #if [ "$multipath_config" != "off" ] && [ "$INTERFACE" != "$PREVINTERFACE" ] && [ "$SETROUTE" != true ]; then interface_gw=$(uci -q get "network.$INTERFACE.gateway") interface_if=$(uci -q get "network.$INTERFACE.ifname") _log "Replace default route by $interface_gw dev $interface_if"