aboutsummaryrefslogtreecommitdiff
path: root/net/unbound/files/unbound.init
diff options
context:
space:
mode:
authorEric Luehrsen <ericluehrsen@gmail.com>2020-10-26 23:09:18 -0400
committerEric Luehrsen <ericluehrsen@gmail.com>2020-11-04 19:25:08 -0500
commit658c27ea97a246d313173e38e6962558aebed52b (patch)
tree3b89ed15e8b866e0dbf74176a043bf0528ff5470 /net/unbound/files/unbound.init
parent2680dc239a635d7541b98ddc8e310263018dc9e1 (diff)
unbound: clean up interface interpretation in UCI
DNS flag day 2020, software should reflect the minimum EDNS 1232 bytes. Added iface_wan and iface_lan to control internal DNS assignemnts and to control what is local service ACL. Interface wild cards are not explicitly set so that they can be customized in extended conf. Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
Diffstat (limited to 'net/unbound/files/unbound.init')
-rwxr-xr-xnet/unbound/files/unbound.init10
1 files changed, 7 insertions, 3 deletions
diff --git a/net/unbound/files/unbound.init b/net/unbound/files/unbound.init
index fa94a3b35..fb363e188 100755
--- a/net/unbound/files/unbound.init
+++ b/net/unbound/files/unbound.init
@@ -9,6 +9,9 @@
#
##############################################################################
+# while useful (sh)ellcheck is pedantic and noisy
+# shellcheck disable=1091,2002,2004,2034,2039,2086,2094,2140,2154,2155
+
START=19
STOP=50
USE_PROCD=1
@@ -54,9 +57,10 @@ stop_service() {
##############################################################################
service_triggers() {
- local legacy=$( uci_get unbound.@unbound[0].trigger )
- local triggers=$( uci_get unbound.@unbound[0].trigger_interface )
- local trigger="$triggers $legacy"
+ local legacy1=$( uci_get unbound.@unbound[0].trigger )
+ local legacy2=$( uci_get unbound.@unbound[0].trigger_interface )
+ local legacy3=$( uci_get unbound.@unbound[0].iface_trig )
+ local triggers="$legacy1 $legacy2 $legacy3"
. /usr/lib/unbound/defaults.sh