Browse Source

simple-adblock: use new extra_command function definition

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 4 years ago
parent
commit
04e52a13c4
2 changed files with 6 additions and 7 deletions
  1. +1
    -1
      net/simple-adblock/Makefile
  2. +5
    -6
      net/simple-adblock/files/simple-adblock.init

+ 1
- 1
net/simple-adblock/Makefile View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=simple-adblock
PKG_VERSION:=1.8.4
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
PKG_LICENSE:=GPL-3.0-or-later


+ 5
- 6
net/simple-adblock/files/simple-adblock.init View File

@ -10,12 +10,11 @@ USE_PROCD=1
LC_ALL=C
# shellcheck disable=SC2034
EXTRA_COMMANDS='check dl killcache sizes show version'
# shellcheck disable=SC2034
EXTRA_HELP=' check Checks if specified domain is found in current block-list
dl Force-downloads all enabled block-list
sizes Displays the file-sizes of enabled block-lists
show Shows the service last-run status'
extra_command "check" "Checks if specified domain is found in current block-list"
extra_command "dl" "Force-downloads all enabled block-list"
extra_command "sizes" "Displays the file-sizes of enabled block-listo"
extra_command "show" "Shows the service last-run status"
extra_command "version" "Show version"
readonly packageName='simple-adblock'
readonly serviceName="$packageName $PKG_VERSION"


Loading…
Cancel
Save