From d83642c20519692c5d3883e23d01bb84a48dd85a Mon Sep 17 00:00:00 2001 From: Daniel Dickinson Date: Wed, 2 Dec 2015 00:25:30 -0500 Subject: applications: uhttpd: Add a uHTTPd configuration app uHTTPd has a lot of useful options that ought to be configurable without have to SSH in, so expose those options in a UI page. --- .../luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua (limited to 'applications/luci-app-uhttpd/luasrc/controller/uhttpd') diff --git a/applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua b/applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua new file mode 100644 index 0000000000..2e80dd63b4 --- /dev/null +++ b/applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua @@ -0,0 +1,17 @@ +-- Copyright 2015 Daniel Dickinson +-- Licensed to the public under the Apache License 2.0. + +module("luci.controller.uhttpd.uhttpd", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/uhttpd") then + return + end + + local page + + page = entry({"admin", "services", "uhttpd"}, cbi("uhttpd/uhttpd"), _("uHTTPd")) + page.leaf = true + +end + -- cgit v1.2.3