mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
fix
This commit is contained in:
parent
b0bc61a352
commit
432215a329
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue