1
0

mjpg-streamer.lua 469 B

1234567891011121314151617
  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. luci.i18n.loadc("mjpg-streamer")
  7. if not nixio.fs.access("/etc/config/mjpg-streamer") then
  8. return
  9. end
  10. local page = entry({"admin", "services", "mjpg-streamer"}, cbi("mjpg-streamer"), _("MJPG-streamer"))
  11. page.i18n = "mjpg-streamer"
  12. page.dependent = true
  13. end