From 9922c8e3e0b3eab36261f081a4102c84222aeca5 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Tue, 3 Nov 2020 19:51:46 +0100 Subject: [PATCH] adblock: adapt openwrt rc.common changes * since openwrt master has merged the depending P/R, the old extra_help/extra_commands syntax is no longer working, see #13798 for reference * removed test.sh script from package Signed-off-by: Dirk Brenken --- net/adblock/Makefile | 2 +- net/adblock/files/adblock.init | 15 +++++++-------- net/adblock/test.sh | 3 --- 3 files changed, 8 insertions(+), 12 deletions(-) delete mode 100755 net/adblock/test.sh diff --git a/net/adblock/Makefile b/net/adblock/Makefile index 023fdc22f..e6068f7ca 100644 --- a/net/adblock/Makefile +++ b/net/adblock/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=adblock PKG_VERSION:=4.0.7 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=GPL-3.0-or-later PKG_MAINTAINER:=Dirk Brenken diff --git a/net/adblock/files/adblock.init b/net/adblock/files/adblock.init index 64dbd7684..c75ddee67 100755 --- a/net/adblock/files/adblock.init +++ b/net/adblock/files/adblock.init @@ -8,14 +8,13 @@ START=30 USE_PROCD=1 -EXTRA_COMMANDS="suspend resume query report list timer status_service version" -EXTRA_HELP=" suspend Suspend adblock processing - resume Resume adblock processing - query Query active blocklists and backups for a specific domain - report [] Print DNS statistics with an optional search parameter - list [[|] [source(s)]] List available adblock sources or add/remove them from config - timer [] [] Set a cron based update interval - version print version information" +extra_command "suspend" "Suspend adblock processing" +extra_command "resume" "Resume adblock processing" +extra_command "query" " Query active blocklists and backups for a specific domain" +extra_command "report" "[] Print DNS statistics with an optional search parameter" +extra_command "list" "[[|] [source(s)]] List available adblock sources or add/remove them from config" +extra_command "timer" " [] [] Set a cron based update interval" +extra_command "version" "Print version information" adb_init="/etc/init.d/adblock" adb_script="/usr/bin/adblock.sh" diff --git a/net/adblock/test.sh b/net/adblock/test.sh deleted file mode 100755 index 607de9758..000000000 --- a/net/adblock/test.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -/etc/init.d/"${1}" version 2>/dev/null | grep "${2}"