adblock: update 2.8.0 (release 2)

* fix a logical glitch

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken 2017-06-27 08:31:51 +02:00
parent e660813798
commit 14c5e7cae9
2 changed files with 7 additions and 5 deletions

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>

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
#