adblock: 4.1.3-4
authorDirk Brenken <dev@brenken.org>
Wed, 22 Dec 2021 12:19:40 +0000 (13:19 +0100)
committerDirk Brenken <dev@brenken.org>
Wed, 22 Dec 2021 12:19:40 +0000 (13:19 +0100)
* fix backup dir creation in raw mode

Signed-off-by: Dirk Brenken <dev@brenken.org>
net/adblock/Makefile
net/adblock/files/adblock.sh

index c8e0e536b0f839cf7e6e6c7eeb68a66016a2af6d..9d322f02202cc25061a5d273207941aef5ed7946 100644 (file)
@@ -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>
 
index 916de3c1fdeec627e41089286cbeabf056691485..f249d26758b629643d4cd57a61757a2a68700a2a 100755 (executable)
@@ -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}"