mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix get multipath config
This commit is contained in:
parent
2ebbaa57a6
commit
c5feddc2f6
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ if [ "$OMR_TRACKER_PREV_STATUS" != "" ] && [ "$OMR_TRACKER_PREV_STATUS" != "$OMR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
multipath_config=$(uci -q get "network.$OMR_TRACKER_INTERFACE.multipath")
|
multipath_config=$(uci -q get "network.$OMR_TRACKER_INTERFACE.multipath")
|
||||||
[ "$multipath_config" ] && multipath_config=$(uci -q get "openmptcprouter.$OMR_TRACKER_INTERFACE.multipath" || echo "off")
|
[ -z "$multipath_config" ] && multipath_config=$(uci -q get "openmptcprouter.$OMR_TRACKER_INTERFACE.multipath" || echo "off")
|
||||||
if [ "$multipath_config" = "master" ]; then
|
if [ "$multipath_config" = "master" ]; then
|
||||||
if [ "$default_gw" != "$OMR_TRACKER_DEVICE_GATEWAY" ] || [ "$default_gw" = "" ]; then
|
if [ "$default_gw" != "$OMR_TRACKER_DEVICE_GATEWAY" ] || [ "$default_gw" = "" ]; then
|
||||||
omrvpn_intf=$(uci -q get "network.omrvpn.ifname" || echo "tun")
|
omrvpn_intf=$(uci -q get "network.omrvpn.ifname" || echo "tun")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue