1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

No tracking for glorytun interface, log previous interface for gw change

This commit is contained in:
Ycarus 2018-05-26 22:04:54 +02:00
parent af4d5483fa
commit c1f972a07e
3 changed files with 9 additions and 8 deletions

View file

@ -1,12 +1,12 @@
#!/bin/sh
if [ "$(uci -q get omr-tracker.tun0)" = "" ]; then
if [ "$(uci -q get omr-tracker.glorytun)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set omr-tracker.tun0=interface
set omr-tracker.tun0.type="none"
set omr-tracker.tun0.timeout=1
set omr-tracker.tun0.tries=4
set omr-tracker.tun0.interval=2
set omr-tracker.glotytun=interface
set omr-tracker.glorytun.type="none"
set omr-tracker.glorytun.timeout=5
set omr-tracker.glorytun.tries=5
set omr-tracker.glorytun.interval=4
commit omr-tracker
EOF
fi