Browse Source

Merge pull request #16285 from jamesmacwhite/stubby-trigger-interfaces

stubby: Add multi WAN support for procd trigger
lilik-openwrt-22.03
Dirk Brenken 3 years ago
committed by GitHub
parent
commit
cfc1c6a7e7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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