mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 02:21:19 +00:00
adblock: update 3.8.11
* some more init tweaks * update/cleanup readme Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
@@ -4,21 +4,21 @@
|
||||
START=30
|
||||
USE_PROCD=1
|
||||
|
||||
EXTRA_COMMANDS="suspend resume query report status"
|
||||
EXTRA_COMMANDS="suspend resume query report"
|
||||
EXTRA_HELP=" suspend Suspend adblock processing
|
||||
resume Resume adblock processing
|
||||
query <DOMAIN> Query active blocklists for specific domains
|
||||
report <SEARCH> Print dns query statistics with an optional search parameter
|
||||
status Print runtime information"
|
||||
report <SEARCH> Print dns query statistics with an optional search parameter"
|
||||
|
||||
adb_init="/etc/init.d/adblock"
|
||||
adb_script="/usr/bin/adblock.sh"
|
||||
adb_pidfile="/var/run/adblock.pid"
|
||||
|
||||
if [ -s "${adb_pidfile}" ] && \
|
||||
[ "${action}" != "help" ] && [ "${action}" != "status" ] && [ "${action}" != "boot" ] && [ "${action}" != "enabled" ]
|
||||
if [ -s "${adb_pidfile}" ] && { [ "${action}" = "start" ] || [ "${action}" = "stop" ] || \
|
||||
[ "${action}" = "restart" ] || [ "${action}" = "reload" ] || [ "${action}" = "report" ] || \
|
||||
[ "${action}" = "suspend" ] || [ "${action}" = "resume" ] || [ "${action}" = "query" ]; }
|
||||
then
|
||||
exit 1
|
||||
exit 0
|
||||
fi
|
||||
|
||||
boot()
|
||||
|
||||
Reference in New Issue
Block a user