From 89dfd418989f3d1fb39dbe924b88a8b59ac3534d Mon Sep 17 00:00:00 2001 From: Jan Baier Date: Wed, 18 Aug 2021 14:20:04 +0200 Subject: [PATCH] banhosts: Call killall with the -s 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 --- utils/banhosts/Makefile | 2 +- utils/banhosts/files/updatebanhost | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/banhosts/Makefile b/utils/banhosts/Makefile index 0087a6ff1e..47a0ddbea3 100644 --- a/utils/banhosts/Makefile +++ b/utils/banhosts/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=banhostlist PKG_VERSION:=1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_MAINTAINER:=Matteo Croce diff --git a/utils/banhosts/files/updatebanhost b/utils/banhosts/files/updatebanhost index a00d9cb6bd..3930b60ada 100644 --- a/utils/banhosts/files/updatebanhost +++ b/utils/banhosts/files/updatebanhost @@ -6,7 +6,7 @@ gethosts() { logger -t "banhost[$$]" "Update $file" wget -qO- http://winhelp2002.mvps.org/hosts.txt |awk 'BEGIN{printf "0.0.0.0"}/^0\.0\.0\.0/{printf " "$2}END{exit(!FNR)}' >$file || exit 1 echo -n $time >$file.time - exec killall -HUP dnsmasq + exec killall -s HUP dnsmasq } if [ "$ACTION" = ifup -a "$INTERFACE" = wan ]; then