3a2c2ea1be5b3c75c7250d4b5e38f0806e8b2fca
[project/luci.git] / applications / luci-app-shairplay / luasrc / controller / shairplay.lua
1 --[[
2 LuCI - Lua Configuration Interface - Shairplay support
3
4 Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com>
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 module("luci.controller.shairplay", package.seeall)
16
17 function index()
18         if not nixio.fs.access("/etc/config/shairplay") then
19                 return
20         end
21
22         local page = entry({"admin", "services", "shairplay"}, cbi("shairplay"), _("Shairplay"))
23         page.dependent = true
24
25 end