summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-uvc_streamer/luasrc/controller
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-01 21:56:30 +0000
committerSteven Barth <steven@midlink.org>2008-09-01 21:56:30 +0000
commit87bed5db45430fd69d7d89b30e1c6dae46d05e7c (patch)
tree55515589ae5b6f33ba0cd61b931cd8fa93aa48db /applications/luci-uvc_streamer/luasrc/controller
parente5be8db11482a6f7200377ff422018e2aaeb21d0 (diff)
Added UVC-Streamer application
Contributed by Yanira Thanks a lot
Diffstat (limited to 'applications/luci-uvc_streamer/luasrc/controller')
-rw-r--r--applications/luci-uvc_streamer/luasrc/controller/uvc_streamer.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/applications/luci-uvc_streamer/luasrc/controller/uvc_streamer.lua b/applications/luci-uvc_streamer/luasrc/controller/uvc_streamer.lua
new file mode 100644
index 0000000000..a1f2296717
--- /dev/null
+++ b/applications/luci-uvc_streamer/luasrc/controller/uvc_streamer.lua
@@ -0,0 +1,13 @@
+module("luci.controller.uvc_streamer", package.seeall)
+
+function index()
+ require("luci.i18n")
+ luci.i18n.loadc("uvc_streamer")
+ if not luci.fs.isfile("/etc/config/uvc-streamer") then
+ return
+ end
+
+ local page = entry({"admin", "services", "uvc_streamer"}, cbi("uvc_streamer"), luci.i18n.translate("uvc_streamer", "UVC Streaming"), 60)
+ page.i18n = "uvc_streamer"
+ page.dependent = true
+end