mirror of
https://github.com/openwrt/packages.git
synced 2026-01-11 16:00:23 +04:00
adblock: release 4.0.2
* removed 'hphosts' from sources (discontinued) * fixed a "out of range" bug and another small issue in the f_dnsup function * add three new sources: 'anudeep', 'stopforumspam' and 'youtube' * changed 'list' behaviour, the source file has now a higher precedence than the archive file (see readme) * update readme, added missing parameters & more Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
export LC_ALL=C
|
||||
export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
set -o pipefail
|
||||
adb_ver="4.0.1"
|
||||
adb_ver="4.0.2"
|
||||
adb_enabled=0
|
||||
adb_debug=0
|
||||
adb_forcedns=0
|
||||
@@ -39,9 +39,9 @@ adb_blacklist="/etc/adblock/adblock.blacklist"
|
||||
adb_whitelist="/etc/adblock/adblock.whitelist"
|
||||
adb_ubusservice="/etc/adblock/adblock.monitor"
|
||||
adb_mailservice="/etc/adblock/adblock.mail"
|
||||
adb_srcarc="/etc/adblock/adblock.sources.gz"
|
||||
adb_dnsfile="${adb_dnsprefix}.overall"
|
||||
adb_dnsjail="${adb_dnsprefix}.jail"
|
||||
adb_srcarc="/etc/adblock/adblock.sources.gz"
|
||||
adb_srcfile="${adb_tmpbase}/adb_sources.json"
|
||||
adb_rtfile="${adb_tmpbase}/adb_runtime.json"
|
||||
adb_loggercmd="$(command -v logger)"
|
||||
@@ -635,7 +635,7 @@ f_dnsup()
|
||||
"/etc/init.d/${adb_dns}" restart >/dev/null 2>&1
|
||||
restart_rc="${?}"
|
||||
fi
|
||||
if [ "${restart_rc}" -eq 0 ]
|
||||
if [ "${restart_rc}" = "0" ]
|
||||
then
|
||||
while [ "${cnt}" -le "${adb_dnstimeout}" ]
|
||||
do
|
||||
@@ -655,6 +655,7 @@ f_dnsup()
|
||||
fi
|
||||
else
|
||||
sleep ${adb_dnstimeout}
|
||||
cnt=${adb_dnstimeout}
|
||||
out_rc=0
|
||||
break
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user