Browse Source

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 <jan.baier@amagical.net>
lilik-openwrt-22.03
Jan Baier 3 years ago
committed by Etienne Champetier
parent
commit
89dfd41898
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      utils/banhosts/Makefile
  2. +1
    -1
      utils/banhosts/files/updatebanhost

+ 1
- 1
utils/banhosts/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=banhostlist PKG_NAME:=banhostlist
PKG_VERSION:=1 PKG_VERSION:=1
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_MAINTAINER:=Matteo Croce <matteo@openwrt.org> PKG_MAINTAINER:=Matteo Croce <matteo@openwrt.org>


+ 1
- 1
utils/banhosts/files/updatebanhost View File

@ -6,7 +6,7 @@ gethosts() {
logger -t "banhost[$$]" "Update $file" 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 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 echo -n $time >$file.time
exec killall -HUP dnsmasq
exec killall -s HUP dnsmasq
} }
if [ "$ACTION" = ifup -a "$INTERFACE" = wan ]; then if [ "$ACTION" = ifup -a "$INTERFACE" = wan ]; then


Loading…
Cancel
Save