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

Merge branch 'test' into develop

This commit is contained in:
suyuan 2021-06-08 11:30:26 +08:00
commit 24a2d07ab4
5 changed files with 68 additions and 7 deletions

View file

@ -110,6 +110,14 @@ if [ "$(uci -q get omr-bypass.disneyplus)" = "" ]; then
commit omr-bypass
EOF
fi
if [ "$(uci -q get omr-bypass.amazonvideo)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set omr-bypass.amazonvideo=proto
add_list omr-bypass.amazonvideo.url='cloudfront.net'
add_list omr-bypass.amazonvideo.url='llnw.net'
commit omr-bypass
EOF
fi
if [ ! -f /etc/crontabs/root ] || [ "$(cat /etc/crontabs/root | grep bypass)" = "" ]; then
echo "0 2 * * * /etc/init.d/omr-bypass bypass_asn" >> /etc/crontabs/root
fi