X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-unbound%2Fluasrc%2Fcontroller%2Funbound.lua;fp=applications%2Fluci-app-unbound%2Fluasrc%2Fcontroller%2Funbound.lua;h=0a5abc5a5ef280e3b150bcb78563e422c2583005;hp=0000000000000000000000000000000000000000;hb=3580eddcfa0718002a3dab535a34839dbffcb3a1;hpb=1fd43b4b65e120d84f2b35529aa0816b63779683 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 +