|
@ -1,7 +1,7 @@ |
|
|
#!/bin/sh /etc/rc.common |
|
|
#!/bin/sh /etc/rc.common |
|
|
# |
|
|
# |
|
|
|
|
|
|
|
|
START=90 |
|
|
|
|
|
|
|
|
START=50 |
|
|
USE_PROCD=1 |
|
|
USE_PROCD=1 |
|
|
|
|
|
|
|
|
EXTRA_COMMANDS="suspend resume query status" |
|
|
EXTRA_COMMANDS="suspend resume query status" |
|
@ -72,10 +72,11 @@ service_triggers() |
|
|
local iface="$(uci -q get adblock.global.adb_iface)" |
|
|
local iface="$(uci -q get adblock.global.adb_iface)" |
|
|
local delay="$(uci -q get adblock.global.adb_triggerdelay)" |
|
|
local delay="$(uci -q get adblock.global.adb_triggerdelay)" |
|
|
|
|
|
|
|
|
PROCD_RELOAD_DELAY=$((${delay:=1} * 1000)) |
|
|
|
|
|
|
|
|
PROCD_RELOAD_DELAY=$((${delay:=2} * 1000)) |
|
|
for name in ${iface} |
|
|
for name in ${iface} |
|
|
do |
|
|
do |
|
|
procd_add_interface_trigger "interface.*.up" "${name}" "${adb_init}" start |
|
|
procd_add_interface_trigger "interface.*.up" "${name}" "${adb_init}" start |
|
|
done |
|
|
done |
|
|
|
|
|
PROCD_RELOAD_DELAY=1000 |
|
|
procd_add_config_trigger "config.change" "adblock" "${adb_init}" start |
|
|
procd_add_config_trigger "config.change" "adblock" "${adb_init}" start |
|
|
} |
|
|
} |