diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-05 17:16:59 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-05 17:16:59 +0100 |
commit | 66aa988246f4226627b6b0061ff7304b88c3036d (patch) | |
tree | 272247048c025c3cbf9b0996e25c654250719017 /applications/luci-mjpg-streamer/luasrc/controller/mjpg-streamer.lua | |
parent | 3fd748745c2ba6c6d06eba29d2fc34013793376b (diff) | |
parent | 624e37ceae2fa2bef7f51565f28bfc827ad0f704 (diff) |
Merge pull request #264 from thess/mjpg-streamer
luci-app-mjpg-streamer: Add new module for mjpg-streamer management
Diffstat (limited to 'applications/luci-mjpg-streamer/luasrc/controller/mjpg-streamer.lua')
-rw-r--r-- | applications/luci-mjpg-streamer/luasrc/controller/mjpg-streamer.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/applications/luci-mjpg-streamer/luasrc/controller/mjpg-streamer.lua b/applications/luci-mjpg-streamer/luasrc/controller/mjpg-streamer.lua new file mode 100644 index 0000000000..97b9aa4abb --- /dev/null +++ b/applications/luci-mjpg-streamer/luasrc/controller/mjpg-streamer.lua @@ -0,0 +1,29 @@ +--[[ +LuCI MJPEG Streamer + +(c) 2014 Roger D <rogerdammit@gmail.com> +Based on work by: vargabab and OpenWrt Dreambox + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ +]]-- + +module("luci.controller.mjpg-streamer", package.seeall) + +function index() + require("luci.i18n") + luci.i18n.loadc("mjpg-streamer") + if not nixio.fs.access("/etc/config/mjpg-streamer") then + return + end + + local page = entry({"admin", "services", "mjpg-streamer"}, cbi("mjpg-streamer"), _("MJPG-streamer")) + page.i18n = "mjpg-streamer" + page.dependent = true + +end |