mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Reset WAN info after error
This commit is contained in:
parent
ac9b6cc681
commit
93a31d8931
1 changed files with 2 additions and 1 deletions
|
@ -159,7 +159,6 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then
|
||||||
_log "$OMR_TRACKER_DEVICE switched off because $OMR_TRACKER_STATUS_MSG"
|
_log "$OMR_TRACKER_DEVICE switched off because $OMR_TRACKER_STATUS_MSG"
|
||||||
fi
|
fi
|
||||||
uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.state='down'
|
uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.state='down'
|
||||||
uci -q commit openmptcprouter
|
|
||||||
if [ "$(sysctl -n net.mptcp.mptcp_enabled | tr -d '\n')" = "1" ]; then
|
if [ "$(sysctl -n net.mptcp.mptcp_enabled | tr -d '\n')" = "1" ]; then
|
||||||
multipath "$OMR_TRACKER_DEVICE" off > /dev/null 2>&1
|
multipath "$OMR_TRACKER_DEVICE" off > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
@ -202,6 +201,8 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
dns_flush
|
dns_flush
|
||||||
|
uci -q delete openmptcprouter.$OMR_TRACKER_INTERFACE.lc
|
||||||
|
uci -q commit openmptcprouter
|
||||||
#ubus call network reload
|
#ubus call network reload
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue