From 8414e7142259519ea006bf4081288bc742ed8131 Mon Sep 17 00:00:00 2001 From: Álvaro Fernández Rojas Date: Thu, 30 Oct 2014 12:34:25 +0100 Subject: applications/luci-shairport: add new package. This adds support for configuring shairport. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- .../luci-shairport/luasrc/controller/shairport.lua | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 applications/luci-shairport/luasrc/controller/shairport.lua (limited to 'applications/luci-shairport/luasrc/controller') diff --git a/applications/luci-shairport/luasrc/controller/shairport.lua b/applications/luci-shairport/luasrc/controller/shairport.lua new file mode 100644 index 0000000000..d201eca542 --- /dev/null +++ b/applications/luci-shairport/luasrc/controller/shairport.lua @@ -0,0 +1,25 @@ +--[[ +LuCI - Lua Configuration Interface - Shairport support + +Copyright 2014 Álvaro Fernández Rojas + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ +]]-- + +module("luci.controller.shairport", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/shairport") then + return + end + + local page = entry({"admin", "services", "shairport"}, cbi("shairport"), _("Shairport")) + page.dependent = true + +end -- cgit v1.2.3