root/luci/trunk/applications/luci-minidlna/luasrc/controller/minidlna.lua @ 8516

Revision 8516, 0.6 KB (checked in by jow, 15 months ago)

applications: add an application for miniDLNA

Signed-off-by: Gabor Juhos <juhosg@…>

Line 
1--[[
2LuCI - Lua Configuration Interface - miniDLNA support
3
4Copyright 2012 Gabor Juhos <juhosg@openwrt.org>
5
6Licensed under the Apache License, Version 2.0 (the "License");
7you may not use this file except in compliance with the License.
8You may obtain a copy of the License at
9
10    http://www.apache.org/licenses/LICENSE-2.0
11
12$Id$
13]]--
14
15module("luci.controller.minidlna", package.seeall)
16
17function index()
18    if not nixio.fs.access("/etc/config/minidlna") then
19        return
20    end
21
22    local page
23
24    page = entry({"admin", "services", "minidlna"}, cbi("minidlna"), _("miniDLNA"))
25    page.i18n = "minidlna"
26    page.dependent = true
27end
Note: See TracBrowser for help on using the browser.