64491dc9dcc6dfe364f5c5fd048f59910842b840
[project/luci.git] / applications / luci-uvc_streamer / luasrc / controller / uvc_streamer.lua
1 --[[
2
3 LuCI UVC Streamer
4 (c) 2008 Yanira <forum-2008@email.de>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 ]]--
15
16 module("luci.controller.uvc_streamer", package.seeall)
17
18 function index()
19 require("luci.i18n")
20 luci.i18n.loadc("uvc_streamer")
21 if not luci.fs.access("/etc/config/uvc-streamer") then
22 return
23 end
24
25 local page = entry({"admin", "services", "uvc_streamer"}, cbi("uvc_streamer"), luci.i18n.translate("uvc_streamer", "UVC Streaming"), 60)
26 page.i18n = "uvc_streamer"
27 page.dependent = true
28 end