adblock: release 2.3.0

* automatically selects dnsmasq or unbound as dns backend
* add the new 'adguard' source, a combined/quite effective block list
* remove needless dns backend restarts
* optimize adblock restart behavior
* optimize block list processing on inotify enabled filesystems
* better return code checking on block list download
* fix boot function/startup on Chaos Calmer
* fix a bug in blocklist removal function
* add more (optional) debug output
* move backup options to global config
* documentation update

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken
2017-02-04 21:32:50 +01:00
parent 12c345d803
commit 9500430231
5 changed files with 192 additions and 115 deletions
+15 -8
View File
@@ -13,21 +13,23 @@ adb_script="/usr/bin/adblock.sh"
boot()
{
local wanif4 wanif6
local wanif4 wanif6 cnt=0
ubus -t 30 wait_for network.interface
if [ ${?} -eq 0 ]
then
. "/lib/functions/network.sh"
. "/lib/functions/network.sh"
while [ ${cnt} -le 30 ]
do
network_find_wan wanif4
network_find_wan6 wanif6
if [ -n "${wanif4}" ] || [ -n "${wanif6}" ]
if [ -n "${wanif4}" ] || [ -n "${wanif6}" ] || [ ${cnt} -eq 30 ]
then
rc_procd start_service
return 0
else
sleep 1
cnt=$((cnt+1))
network_flush_cache
fi
fi
rc_procd service_triggers
done
}
start_service()
@@ -54,6 +56,11 @@ stop_service()
rc_procd "${adb_script}" stop
}
restart()
{
rc_procd start_service restart
}
suspend()
{
rc_procd start_service suspend