simple-adblock: Call killall with the -s
authorJan Baier <redacted>
Wed, 18 Aug 2021 12:17:28 +0000 (14:17 +0200)
committerEtienne Champetier <redacted>
Wed, 8 Sep 2021 21:13:52 +0000 (17:13 -0400)
Some versions of killall do support the `killall -SIGNAL` syntax and
have only `-s SIGNAL` which should be supported everywhere.

I see the problem with *killall (PSmisc) 23.3* on latest TurrisOS 5.2

Signed-off-by: Jan Baier <redacted>
net/simple-adblock/Makefile
net/simple-adblock/files/simple-adblock.init

index d521a2e80c0039797ea4f88e210c37d0b26f3424..4fd86b80840c0253cc026bb2ec771746b47428ab 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=simple-adblock
 PKG_VERSION:=1.8.7
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
 PKG_LICENSE:=GPL-3.0-or-later
 
index 7999877056826261263834ebaf24b897cf9731e8..6f9bf92d4a4543af5229b5ca9d29dc2ad98d1aec 100644 (file)
@@ -116,8 +116,8 @@ compare_values() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; }
 is_chaos_calmer() { ubus -S call system board | grep -q 'Chaos Calmer'; }
 led_on(){ if [ -n "${1}" ] && [ -e "${1}/trigger" ]; then echo 'default-on' > "${1}/trigger" 2>&1; fi; }
 led_off(){ if [ -n "${1}" ] &&  [ -e "${1}/trigger" ]; then echo 'none' > "${1}/trigger" 2>&1; fi; }
-dnsmasq_hup() { killall -q -HUP dnsmasq; }
-dnsmasq_kill() { killall -q -KILL dnsmasq; }
+dnsmasq_hup() { killall -q -HUP dnsmasq; }
+dnsmasq_kill() { killall -q -KILL dnsmasq; }
 dnsmasq_restart() { /etc/init.d/dnsmasq restart >/dev/null 2>&1; }
 unbound_restart() { /etc/init.d/unbound restart >/dev/null 2>&1; }
 is_force_dns_active() { iptables-save | grep -q -w -- '--dport 53'; }
git clone https://git.99rst.org/PROJECT