mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix
This commit is contained in:
parent
54d8d306a5
commit
3578bd0a83
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -14,8 +14,7 @@ PKG_RELEASE:=1
|
|||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
MY_DEPENDS := \
|
||||
omr-tracker
|
||||
|
||||
omr-tracker
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SECTION:=OMR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue