diff options
author | Dirk Brenken <dev@brenken.org> | 2021-12-22 13:19:40 +0100 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2021-12-22 13:19:40 +0100 |
commit | 25dd0c63affd278a6be88629cc20bd3c66586ca8 (patch) | |
tree | 8e050013a85c1f3a005846e7e053691863753e70 /net/adblock | |
parent | c815c9a94dcc5a89e209f8093de3c2abaa0a8bba (diff) |
adblock: 4.1.3-4
* fix backup dir creation in raw mode
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'net/adblock')
-rw-r--r-- | net/adblock/Makefile | 2 | ||||
-rwxr-xr-x | net/adblock/files/adblock.sh | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/net/adblock/Makefile b/net/adblock/Makefile index c8e0e536b..9d322f022 100644 --- a/net/adblock/Makefile +++ b/net/adblock/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=adblock PKG_VERSION:=4.1.3 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_LICENSE:=GPL-3.0-or-later PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org> diff --git a/net/adblock/files/adblock.sh b/net/adblock/files/adblock.sh index 916de3c1f..f249d2675 100755 --- a/net/adblock/files/adblock.sh +++ b/net/adblock/files/adblock.sh @@ -405,7 +405,10 @@ f_dns() sleep 1 cnt=$((cnt+1)) done + fi + if [ "${adb_action}" != "stop" ] + then if [ -n "${adb_dnsdir}" ] && [ ! -d "${adb_dnsdir}" ] then mkdir -p "${adb_dnsdir}" @@ -416,7 +419,7 @@ f_dns() f_log "err" "dns backend directory '${adb_dnsdir}' could not be created" fi fi - + if [ ! -f "${adb_dnsdir}/${adb_dnsfile}" ] then printf "${adb_dnsheader}" > "${adb_dnsdir}/${adb_dnsfile}" |