mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
sync (#576)
This commit is contained in:
commit
e434be1c72
2 changed files with 16 additions and 3 deletions
|
@ -153,6 +153,19 @@ if [ "$(uci -q get omr-bypass.sky)" = "" ]; then
|
||||||
commit omr-bypass
|
commit omr-bypass
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
if [ "$(uci -q get omr-bypass.captive_portal)" = "" ]; then
|
||||||
|
uci -q batch <<-EOF >/dev/null
|
||||||
|
set omr-bypass.captive_portal=proto
|
||||||
|
add_list omr-bypass.captive_portal.url='captive.apple.com'
|
||||||
|
add_list omr-bypass.captive_portal.url='connectivitycheck.gstatic.com'
|
||||||
|
add_list omr-bypass.captive_portal.url='clients3.google.com'
|
||||||
|
add_list omr-bypass.captive_portal.url='www.msftconnecttest.com'
|
||||||
|
add_list omr-bypass.captive_portal.url='www.msftncsi.com'
|
||||||
|
add_list omr-bypass.captive_portal.url='nmcheck.gnome.org'
|
||||||
|
add_list omr-bypass.captive_portal.url='networkcheck.kde.org'
|
||||||
|
commit omr-bypass
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
#if [ "$(uci -q get omr-bypass.global)" = "" ]; then
|
#if [ "$(uci -q get omr-bypass.global)" = "" ]; then
|
||||||
# uci -q batch <<-EOF >/dev/null
|
# uci -q batch <<-EOF >/dev/null
|
||||||
# set omr-bypass.global=global
|
# set omr-bypass.global=global
|
||||||
|
|
|
@ -11,9 +11,9 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$OMR_TRACKER_INTERFACE" != "omrvpn" ] && [ "$OMR_TRACKER_INTERFACE" != "omr6in4" ] && [ "$OMR_TRACKER_PREV_STATUS" = "$OMR_TRACKER_STATUS" ] && [ -n "$OMR_TRACKER_INTERFACE" ] && [ "$OMR_TRACKER_PREV_DEVICE_IP" = "$OMR_TRACKER_DEVICE_IP" ] && [ "$OMR_TRACKER_PREV_DEVICE_IP6" = "$OMR_TRACKER_DEVICE_IP6" ] && (([ -n "$OMR_TRACKER_DEVICE_GATEWAY" ] && [ -n "$(ip r show table 991337)" ]) || ([ -n "$OMR_TRACKER_DEVICE_GATEWAY6" ] && [ -n "$(ip -6 r show table 6991337)" ])); then
|
#if [ "$OMR_TRACKER_INTERFACE" != "omrvpn" ] && [ "$OMR_TRACKER_INTERFACE" != "omr6in4" ] && [ "$OMR_TRACKER_PREV_STATUS" = "$OMR_TRACKER_STATUS" ] && [ -n "$OMR_TRACKER_INTERFACE" ] && [ "$OMR_TRACKER_PREV_DEVICE_IP" = "$OMR_TRACKER_DEVICE_IP" ] && [ "$OMR_TRACKER_PREV_DEVICE_IP6" = "$OMR_TRACKER_DEVICE_IP6" ] && (([ -n "$OMR_TRACKER_DEVICE_GATEWAY" ] && [ -n "$(ip r show table 991337)" ]) || ([ -n "$OMR_TRACKER_DEVICE_GATEWAY6" ] && [ -n "$(ip -6 r show table 6991337)" ])); then
|
||||||
exit 0
|
# exit 0
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
SETROUTE=false
|
SETROUTE=false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue