1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00
This commit is contained in:
Ycarus 2018-02-21 15:05:53 +01:00
parent b0bc61a352
commit 432215a329

View file

@ -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"