diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2016-12-05 13:31:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-05 13:31:00 +0200 |
commit | a9d74a6729d398d57447268f2b440444da43d805 (patch) | |
tree | fce45e8efb89221d68f0112864606a01f4bc82c8 /applications/luci-app-unbound/luasrc/controller/unbound.lua | |
parent | 5127dd6a2d032ffe8b52419f45e0e73746661132 (diff) | |
parent | 3580eddcfa0718002a3dab535a34839dbffcb3a1 (diff) |
Merge pull request #864 from EricLuehrsen/unbound_uci
Unbound: Basic LuCI to go with recent Unbound UCI enhancements
Diffstat (limited to 'applications/luci-app-unbound/luasrc/controller/unbound.lua')
-rw-r--r-- | applications/luci-app-unbound/luasrc/controller/unbound.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/applications/luci-app-unbound/luasrc/controller/unbound.lua b/applications/luci-app-unbound/luasrc/controller/unbound.lua new file mode 100644 index 0000000000..0a5abc5a5e --- /dev/null +++ b/applications/luci-app-unbound/luasrc/controller/unbound.lua @@ -0,0 +1,17 @@ +-- Copyright 2008 Steven Barth <steven@midlink.org> +-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> +-- Licensed to the public under the Apache License 2.0. + +module("luci.controller.unbound", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/unbound") then + return + end + + local page + + page = entry({"admin", "services", "unbound"}, cbi("unbound"), _("Recursive DNS")) + page.dependent = true +end + |