shairport.lua 377 B

1234567891011121314
  1. -- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com>
  2. -- Licensed to the public under the Apache License 2.0.
  3. module("luci.controller.shairport", package.seeall)
  4. function index()
  5. if not nixio.fs.access("/etc/config/shairport") then
  6. return
  7. end
  8. local page = entry({"admin", "services", "shairport"}, cbi("shairport"), _("Shairport"))
  9. page.dependent = true
  10. end