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

Shadowsocks and glorytun restart openmptcprouter-vps

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-09-11 22:03:11 +02:00
parent 5ac77a910d
commit 05df54a468
2 changed files with 15 additions and 0 deletions

View file

@ -58,5 +58,12 @@ if [ "$(uci -q get shadowsocks-libev.hi.obfs)" = "1" ]; then
EOF
fi
if [ "$(uci -q get ucitrack.@shadowsocks-libev[*1].affects | grep openmptcprouter-vps)" = "" ]; then
uci -q batch <<-EOF >/dev/null
add_list ucitrack.@shadowsocks-libev[-1].affects="openmptcprouter-vps"
commit ucitrack
EOF
fi
rm -f /tmp/luci-indexcache
exit 0

View file

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