diff options
author | Daniel Dickinson <openwrt@daniel.thecshore.com> | 2015-12-02 00:25:30 -0500 |
---|---|---|
committer | Daniel Dickinson <openwrt@daniel.thecshore.com> | 2015-12-15 13:09:46 -0500 |
commit | d83642c20519692c5d3883e23d01bb84a48dd85a (patch) | |
tree | 4eddfd64c6892ce81263cd1bf425f6469e28b88b /applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua | |
parent | 6509e007e29f438d74b01eb6e23a09f02775dd6c (diff) |
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.
Diffstat (limited to 'applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua')
-rw-r--r-- | applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua | 17 |
1 files changed, 17 insertions, 0 deletions
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 <openwrt@daniel.thecshore.com> +-- 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 + |