mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix VPN route in omr-tracker post-tracking 002-error script
This commit is contained in:
parent
09e91b2fb8
commit
f270889d32
2 changed files with 5 additions and 0 deletions
|
@ -238,6 +238,7 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ] || { [ "$OMR_TRACKER_INTERFACE" != "omrvp
|
|||
uci -q set openmptcprouter.omr.vpn='down'
|
||||
fi
|
||||
if [ "$(uci -q get openmptcprouter.settings.defaultgw)" != "0" ]; then
|
||||
del_default_route
|
||||
config_load network
|
||||
config_foreach set_route interface $OMR_TRACKER_INTERFACE
|
||||
config_foreach set_route6 interface $OMR_TRACKER_INTERFACE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue