mjpg-streamer.lua 435 B

12345678910111213141516
  1. -- Copyright 2014 Roger D <rogerdammit@gmail.com>
  2. -- Licensed to the public under the Apache License 2.0.
  3. module("luci.controller.mjpg-streamer", package.seeall)
  4. function index()
  5. require("luci.i18n")
  6. if not nixio.fs.access("/etc/config/mjpg-streamer") then
  7. return
  8. end
  9. local page = entry({"admin", "services", "mjpg-streamer"}, cbi("mjpg-streamer"), _("MJPG-streamer"))
  10. page.i18n = "mjpg-streamer"
  11. page.dependent = true
  12. end