adblock: update 1.1.2

* remove hardcoded paths for system tools like iptables, uci & fetch
(wget)
* support openwrt & lede spin-off
* cosmetics & cleanups

Signed-off-by: Dirk Brenken <openwrt@brenken.org>

(cherry picked from commit 7b4ad33255)
This commit is contained in:
Dirk Brenken
2016-05-08 18:57:54 +02:00
committed by Hannu Nyman
parent 0f34254995
commit da4115d276
4 changed files with 41 additions and 39 deletions
+4 -5
View File
@@ -1,5 +1,5 @@
#!/bin/sh
# ad/abuse domain blocking script for dnsmasq/openwrt
# dns based ad/abuse domain blocking script
# written by Dirk Brenken (openwrt@brenken.org)
# This is free software, licensed under the GNU General Public License v3.
@@ -33,11 +33,10 @@ else
printf "${adb_pid}" > "${adb_pidfile}"
fi
# get current directory, script- and openwrt version
# get current directory and script version
#
adb_scriptdir="${0%/*}"
adb_scriptver="1.1.1"
openwrt_version="$(cat /etc/openwrt_version)"
adb_scriptver="1.1.2"
# source in adblock function library
#
@@ -61,7 +60,7 @@ f_envload
# start logging
#
f_log "domain adblock processing started (${adb_scriptver}, ${openwrt_version}, $(/bin/date "+%d.%m.%Y %H:%M:%S"))"
f_log "domain adblock processing started (${adb_scriptver}, ${adb_sysver}, $(/bin/date "+%d.%m.%Y %H:%M:%S"))"
# check environment
#