summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-uhttpd/luasrc/controller
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-uhttpd/luasrc/controller')
-rw-r--r--applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua17
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
+