e28983f39006cc2712e0f57528394f8f5255e483
[project/luci.git] / applications / luci-hd-idle / luasrc / controller / hd_idle.lua
1 --[[
2
3 LuCI hd-idle
4 (c) 2008 Yanira <forum-2008@email.de>
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
16 module("luci.controller.hd_idle", package.seeall)
17
18 function index()
19 if not nixio.fs.access("/etc/config/hd-idle") then
20 return
21 end
22
23 local page
24
25 page = entry({"admin", "services", "hd_idle"}, cbi("hd_idle"), _("hd-idle"), 60)
26 page.i18n = "hd_idle"
27 page.dependent = true
28 end