Browse Source

stubby: Add multi WAN support for procd trigger

Signed-off-by: James White <james@jmwhite.co.uk>
lilik-openwrt-22.03
James White 3 years ago
parent
commit
1ad5e3f88c
2 changed files with 8 additions and 5 deletions
  1. +1
    -1
      net/stubby/Makefile
  2. +7
    -4
      net/stubby/files/stubby.init

+ 1
- 1
net/stubby/Makefile View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=stubby
PKG_VERSION:=0.4.0
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/getdnsapi/$(PKG_NAME)


+ 7
- 4
net/stubby/files/stubby.init View File

@ -266,9 +266,12 @@ service_triggers()
trigger="$(uci_get stubby global trigger)"
delay="$(uci_get stubby global triggerdelay "2")"
if [ "$trigger" != "none" ] && [ "$trigger" != "timed" ]; then
PROCD_RELOAD_DELAY=$((${delay:-2} * 1000))
procd_add_interface_trigger "interface.*.up" "$trigger" "$stubby_init" start
fi
PROCD_RELOAD_DELAY=$((${delay:-2} * 1000))
for trigger_item in $trigger
do
procd_add_interface_trigger "interface.*.up" "$trigger_item" "$stubby_init" start
done
procd_add_reload_trigger "stubby"
}

Loading…
Cancel
Save