1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
Ycarus 2018-02-15 19:42:21 +01:00
parent 54d8d306a5
commit 3578bd0a83
2 changed files with 2 additions and 3 deletions

View file

@ -44,7 +44,7 @@ multipath_config=$(uci -q get "network.$OMR_TRACKER_INTERFACE.multipath" || echo
[ "$multipath_status" = "$multipath_config" ] && exit 0
_log "$OMR_TRACKER_DEVICE switched to $multipath_config"
if [ "$multipath_config" = "master" ]; then
if [ "$default_gw" = "$current_interface_gw" ] || [ "$default_gw" = "" ]; then
if [ "$default_gw" != "$current_interface_gw" ] || [ "$default_gw" = "" ]; then
_log "Master up : Replace default route by $current_interface_gw dev $OMR_TRACKER_INTERFACE"
ip route replace default scope global nexthop via $current_interface_gw dev $OMR_TRACKER_INTERFACE
fi

View file

@ -14,8 +14,7 @@ PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
MY_DEPENDS := \
omr-tracker
omr-tracker
define Package/$(PKG_NAME)
SECTION:=OMR