mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user