Browse Source

adblock: 4.1.3-4

* fix backup dir creation in raw mode

Signed-off-by: Dirk Brenken <dev@brenken.org>
lilik-openwrt-22.03
Dirk Brenken 3 years ago
parent
commit
25dd0c63af
No known key found for this signature in database GPG Key ID: 9D71CD547BFAE684
2 changed files with 5 additions and 2 deletions
  1. +1
    -1
      net/adblock/Makefile
  2. +4
    -1
      net/adblock/files/adblock.sh

+ 1
- 1
net/adblock/Makefile View 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>


+ 4
- 1
net/adblock/files/adblock.sh View File

@ -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}"


Loading…
Cancel
Save