1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
openmptcprouter-feeds/luci-app-adbyby-plus/root/usr/share/adbyby/adblock.sh
suyuan168 03e1981fe0 fix
2022-01-06 16:26:18 +08:00

10 lines
273 B
Bash
Executable file

#!/bin/sh
uclient-fetch --no-check-certificate -O - 'https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt' > /tmp/adnew.conf
if [ -s "/tmp/adnew.conf" ];then
/usr/share/adbyby/ad-update
fi
rm -f /tmp/adbyby.updated
sleep 10
/etc/init.d/adbyby restart