mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
adblock: update 1.4.7
Apply adblock update 1.4.5-1.4.7 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> Original commit messages: adblock: update 1.4.5 * change the default hphosts list source to ad and tracking servers only, the overall list includes to many false positives * new optional config parm 'adb_hotplugif' to restrict hotplug support to a certain wan interface or to disable it at all * documentation update * cosmetics adblock: update 1.4.6 * added a 'window.close()' to adblock landing page to automatically close any pop-ups that might get loaded with a blocked ad * simplified dnsmasq check in ap mode 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
This commit is contained in:
committed by
Hannu Nyman
parent
190d5698c6
commit
124ac892c6
@@ -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