uhttpd.lua 382 B

1234567891011121314151617
  1. -- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com>
  2. -- Licensed to the public under the Apache License 2.0.
  3. module("luci.controller.uhttpd.uhttpd", package.seeall)
  4. function index()
  5. if not nixio.fs.access("/etc/config/uhttpd") then
  6. return
  7. end
  8. local page
  9. page = entry({"admin", "services", "uhttpd"}, cbi("uhttpd/uhttpd"), _("uHTTPd"))
  10. page.leaf = true
  11. end