diff options
author | Eric Luehrsen <ericluehrsen@gmail.com> | 2019-09-21 20:36:04 -0400 |
---|---|---|
committer | Eric Luehrsen <ericluehrsen@gmail.com> | 2019-09-21 20:37:19 -0400 |
commit | 65e3e1d929bfe66739f978c946503a1eb1301966 (patch) | |
tree | 154129de80e74d54bacfd269005abdfd658cfc95 /applications/luci-app-unbound/luasrc | |
parent | 9520c0050b0f26cf3f15d36c947e38fbcb1cbd8b (diff) |
luci-app-unbound: inform if odhcpd is not configured
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
Diffstat (limited to 'applications/luci-app-unbound/luasrc')
-rw-r--r-- | applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua b/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua index 60d0477d5..d1ea77408 100644 --- a/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua +++ b/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua @@ -17,6 +17,8 @@ local ht = require "luci.http" local ds = require "luci.dispatcher" local ucl = luci.model.uci.cursor() local valman = ucl:get_first("unbound", "unbound", "manual_conf") +local dhcplk = ucl:get_first("unbound", "unbound", "dhcp_link") +local lstrig = ucl:get_first("dhcp", "odhcpd", "leasetrigger") m1 = Map("unbound") s1 = m1:section(TypedSection, "unbound", translate("Recursive DNS"), @@ -29,6 +31,12 @@ s1 = m1:section(TypedSection, "unbound", translate("Recursive DNS"), s1.addremove = false s1.anonymous = true +if (valman == "0") and (dhcplk == "odhcpd") and (lstrig ~= "/usr/lib/unbound/odhcpd.sh") then + m1.message = translatef( "Note: local DNS is configured to look at odhpcd, " + .. "but odhpcd UCI lease trigger is incorrectly set: ") + .. "dhcp.odhcpd.leasetrigger='" .. lstrig .. "'" +end + --LuCI, Unbound, or Not s1:tab("basic", translate("Basic")) |