From 3580eddcfa0718002a3dab535a34839dbffcb3a1 Mon Sep 17 00:00:00 2001 From: Eric Luehrsen Date: Sat, 3 Dec 2016 21:16:04 -0500 Subject: Unbound: Basic LuCI to go with recent Unbound UCI (Oct2016) Signed-off-by: Eric Luehrsen --- .../luci-app-unbound/luasrc/controller/unbound.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 applications/luci-app-unbound/luasrc/controller/unbound.lua (limited to 'applications/luci-app-unbound/luasrc/controller/unbound.lua') 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 000000000..0a5abc5a5 --- /dev/null +++ b/applications/luci-app-unbound/luasrc/controller/unbound.lua @@ -0,0 +1,17 @@ +-- Copyright 2008 Steven Barth +-- Copyright 2008 Jo-Philipp Wich +-- 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 + -- cgit v1.2.3