Browse Source

adblock: update 2.8.0 (release 2)

* fix a logical glitch

Signed-off-by: Dirk Brenken <dev@brenken.org>
lilik-openwrt-22.03
Dirk Brenken 7 years ago
parent
commit
14c5e7cae9
2 changed files with 7 additions and 5 deletions
  1. +1
    -1
      net/adblock/Makefile
  2. +6
    -4
      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:=2.8.0
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_LICENSE:=GPL-3.0+
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>


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

@ -10,7 +10,7 @@
#
LC_ALL=C
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
adb_ver="2.8.0"
adb_ver="2.8.0-2"
adb_sysver="$(ubus -S call system board | jsonfilter -e '@.release.description')"
adb_enabled=1
adb_debug=0
@ -537,16 +537,18 @@ f_main()
# overall sort
#
if [ ${mem_total} -ge 64 ] || [ ${adb_forcesrt} -eq 1 ]
if [ -s "${adb_tmpdir}/${adb_dnsfile}" ]
then
if [ -s "${adb_tmpdir}/${adb_dnsfile}" ]
if [ ${mem_total} -ge 64 ] || [ ${adb_forcesrt} -eq 1 ]
then
sort -u "${adb_tmpdir}/${adb_dnsfile}" > "${adb_dnsdir}/${adb_dnsfile}"
else
mv -f "${adb_tmpdir}/${adb_dnsfile}" "${adb_dnsdir}" 2>/dev/null
fi
cnt="$(wc -l < "${adb_dnsdir}/${adb_dnsfile}")"
else
> "${adb_dnsdir}/${adb_dnsfile}"
fi
cnt="$(wc -l < "${adb_dnsdir}/${adb_dnsfile}")"
# restart the dns backend and export runtime information
#


Loading…
Cancel
Save