adblock: update 1.4.7

* add a query function to search the active blocklists for a specific
domain (/etc/init.d/adblock query <DOMAIN>)
* fix bug in ap mode/uhttpd port detection
* check general firewall and dnsmasq package dependencies and remove
redundant checks in ap mode

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken
2016-08-25 13:41:15 +02:00
parent a029b3f9f4
commit b31f99823c
5 changed files with 37 additions and 41 deletions
+15 -2
View File
@@ -2,10 +2,11 @@
#
START=99
EXTRA_COMMANDS="toggle stats cfgup"
EXTRA_COMMANDS="toggle stats cfgup query"
EXTRA_HELP=" toggle Toggle adblock 'on' or 'off'
stats Update adblock statistics
cfgup Update adblock configuration file"
cfgup Update adblock configuration file
query <DOMAIN> Query active blocklists for specific domain"
adb_debug=0
adb_pid="${$}"
@@ -127,3 +128,15 @@ cfgup()
fi
return 0
}
query()
{
if [ -z "${1}" ]
then
f_log "no domain query input, please submit a specific search domain"
else
f_log "results for search domain '${1}':"
grep "${1}" "/tmp/dnsmasq.d/adb_list"*
fi
return 0
}