summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mjpg-streamer/luasrc/controller/mjpg-streamer.lua
blob: 81fd3b39d36ff26a698d75dd0d644fec24b81b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- Copyright 2014 Roger D <rogerdammit@gmail.com>
-- Licensed to the public under the Apache License 2.0.

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