adblock: bugfix 2.0.1

* fixed a dnsmasq restart issue (udhcpc error)
* fixed a long standing corner case bug in "disabled" state (does not
remove active block lists!)
* simplified overall sort, removed needless 'for loop'
* cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken
2016-12-22 19:33:59 +01:00
parent 7eedce0a58
commit 708d83bc71
3 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -8,6 +8,7 @@ EXTRA_COMMANDS="suspend resume"
EXTRA_HELP=" suspend Suspend adblock processing
resume Resume adblock processing"
exec 2>/dev/null
adb_script="/usr/bin/adblock.sh"
adb_iface="$(uci -q get adblock.global.adb_iface)"
@@ -69,7 +70,6 @@ service_triggers()
local iface
procd_add_config_trigger "config.change" "adblock" /etc/init.d/adblock start
if [ -z "${adb_iface}" ]
then
procd_add_raw_trigger "interface.*.up" 1000 /etc/init.d/adblock start