Merge pull request #278 from nmav/ocserv
[project/luci.git] / applications / luci-mjpg-streamer / luasrc / controller / mjpg-streamer.lua
1 --[[
2 LuCI MJPEG Streamer
3
4 (c) 2014 Roger D <rogerdammit@gmail.com>
5 Based on work by: vargabab and OpenWrt Dreambox
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13 $Id$
14 ]]--
15
16 module("luci.controller.mjpg-streamer", package.seeall)
17
18 function index()
19         require("luci.i18n")
20         luci.i18n.loadc("mjpg-streamer")
21         if not nixio.fs.access("/etc/config/mjpg-streamer") then
22                 return
23         end
24
25         local page = entry({"admin", "services", "mjpg-streamer"}, cbi("mjpg-streamer"), _("MJPG-streamer"))
26         page.i18n = "mjpg-streamer"
27         page.dependent = true
28
29 end