summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-unbound/luasrc/controller/unbound.lua
diff options
context:
space:
mode:
authorEric Luehrsen <ericluehrsen@hotmail.com>2016-12-03 21:16:04 -0500
committerEric Luehrsen <ericluehrsen@hotmail.com>2016-12-04 13:58:13 -0500
commit3580eddcfa0718002a3dab535a34839dbffcb3a1 (patch)
tree6bf7718c1ec1cffea302302a7c201341b3334981 /applications/luci-app-unbound/luasrc/controller/unbound.lua
parent1fd43b4b65e120d84f2b35529aa0816b63779683 (diff)
Unbound: Basic LuCI to go with recent Unbound UCI (Oct2016)
Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
Diffstat (limited to 'applications/luci-app-unbound/luasrc/controller/unbound.lua')
-rw-r--r--applications/luci-app-unbound/luasrc/controller/unbound.lua17
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
+