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

Add disneyplus bypass service

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-03-27 10:19:56 +01:00
parent 7c0ddbc49a
commit 08a74de00b

View file

@ -82,6 +82,15 @@ if [ "$(uci -q get omr-bypass.lesnumeriques)" = "" ]; then
commit omr-bypass
EOF
fi
if [ "$(uci -q get omr-bypass.disneyplus)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set omr-bypass.disneyplus=proto
add_list omr-bypass.disneyplus.url='disney-plus.net'
add_list omr-bypass.disneyplus.url='disneyplus.com'
add_list omr-bypass.disneyplus.url='bamgrid.com'
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