summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-unbound/luasrc/controller/unbound.lua
blob: 7e2830bb112261d5374791f8e7386b6169f77a40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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/configure"), _("Recursive DNS"))
	page.dependent = true
end