stubby: Add multi WAN support for procd trigger
Signed-off-by: James White <james@jmwhite.co.uk>
This commit is contained in:
parent
b98471e412
commit
1ad5e3f88c
2 changed files with 8 additions and 5 deletions
|
@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=stubby
|
PKG_NAME:=stubby
|
||||||
PKG_VERSION:=0.4.0
|
PKG_VERSION:=0.4.0
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/getdnsapi/$(PKG_NAME)
|
PKG_SOURCE_URL:=https://github.com/getdnsapi/$(PKG_NAME)
|
||||||
|
|
|
@ -266,9 +266,12 @@ service_triggers()
|
||||||
trigger="$(uci_get stubby global trigger)"
|
trigger="$(uci_get stubby global trigger)"
|
||||||
delay="$(uci_get stubby global triggerdelay "2")"
|
delay="$(uci_get stubby global triggerdelay "2")"
|
||||||
|
|
||||||
if [ "$trigger" != "none" ] && [ "$trigger" != "timed" ]; then
|
PROCD_RELOAD_DELAY=$((${delay:-2} * 1000))
|
||||||
PROCD_RELOAD_DELAY=$((${delay:-2} * 1000))
|
|
||||||
procd_add_interface_trigger "interface.*.up" "$trigger" "$stubby_init" start
|
for trigger_item in $trigger
|
||||||
fi
|
do
|
||||||
|
procd_add_interface_trigger "interface.*.up" "$trigger_item" "$stubby_init" start
|
||||||
|
done
|
||||||
|
|
||||||
procd_add_reload_trigger "stubby"
|
procd_add_reload_trigger "stubby"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue