hd_idle.lua 361 B

123456789101112131415
  1. -- Copyright 2008 Yanira <forum-2008@email.de>
  2. -- Licensed to the public under the Apache License 2.0.
  3. module("luci.controller.hd_idle", package.seeall)
  4. function index()
  5. if not nixio.fs.access("/etc/config/hd-idle") then
  6. return
  7. end
  8. local page
  9. page = entry({"admin", "services", "hd_idle"}, cbi("hd_idle"), _("hd-idle"), 60)
  10. page.dependent = true
  11. end