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:
Dirk Brenken
2019-11-16 17:36:08 +01:00
parent e036312e6b
commit bc299d03f2
4 changed files with 41 additions and 40 deletions

View File

@@ -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()