summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2016-01-15 15:20:41 +0100
committerJo-Philipp Wich <jow@openwrt.org>2016-01-15 15:20:41 +0100
commitad064f0b039839dd333bfe8e9631cbc5218410b0 (patch)
treec13911127dbab695710aa784b54b22e794f1a43c /applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua
parent1a7b0b22a85d8294d7a2c196b708266c872dd054 (diff)
parentb130ca554f13e17c787a1c6fd09e67dd7727a4d3 (diff)
Merge pull request #563 from cshore/pull-request-app-uhttpd
Pull request app uhttpd
Diffstat (limited to 'applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua')
-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
+