1
0
Fork 0
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:
Ycarus 2019-01-17 20:44:29 +01:00
parent ac9b6cc681
commit 93a31d8931

View file

@ -159,7 +159,6 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then
_log "$OMR_TRACKER_DEVICE switched off because $OMR_TRACKER_STATUS_MSG"
fi
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
multipath "$OMR_TRACKER_DEVICE" off > /dev/null 2>&1
fi
@ -202,6 +201,8 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then
fi
fi
dns_flush
uci -q delete openmptcprouter.$OMR_TRACKER_INTERFACE.lc
uci -q commit openmptcprouter
#ubus call network reload
exit 0
fi