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

Add glorytun in restart when network changes

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-07-11 19:57:16 +02:00
parent cec1a18a83
commit a68cf0ff62

View file

@ -52,5 +52,11 @@ if [ "$(uci -q show firewall | grep omrvpn)" = "" ]; then
commit firewall commit firewall
EOF EOF
fi fi
if [ "$(uci -q get ucitrack.@network[-1].affects | grep glorytun)" = "" ]; then
uci -q batch <<-EOF >/dev/null
add_list ucitrack.@network[-1].affects="glorytun"
commit ucitrack
EOF
fi
rm -f /tmp/luci-indexcache rm -f /tmp/luci-indexcache
exit 0 exit 0