mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user