mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
adblock: update 1.5.0
* add new 'envchk'function to check adblock environment only, i.e. check volatile firewall rules or uhttpd instances without list updates * add new optional parm 'adb_loglevel', set it to "0" to mute output (print only errors) * set hotplug priority to '90' as well (missed in the last commit) * documentation update * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
#
|
||||
|
||||
START=90
|
||||
EXTRA_COMMANDS="toggle stats cfgup query"
|
||||
EXTRA_COMMANDS="toggle stats cfgup envchk query"
|
||||
EXTRA_HELP=" toggle Toggle adblock 'on' or 'off'
|
||||
stats Update adblock statistics
|
||||
cfgup Update adblock configuration file
|
||||
envchk Check/Set adblock environment
|
||||
query <DOMAIN> Query active blocklists for specific domain"
|
||||
|
||||
adb_debug=0
|
||||
@@ -159,3 +160,14 @@ query()
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
envchk()
|
||||
{
|
||||
adb_loglevel=0
|
||||
f_envcheck
|
||||
rm -f "${adb_tmpfile}"
|
||||
rm -rf "${adb_tmpdir}"
|
||||
adb_loglevel=1
|
||||
f_log "adblock environment check finished successfully"
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user