summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-hd-idle/luasrc/controller/hd_idle.lua
blob: f273a551df2a1d05c68a49603b7fe111f2731702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- Copyright 2008 Yanira <forum-2008@email.de>
-- Licensed to the public under the Apache License 2.0.

module("luci.controller.hd_idle", package.seeall)

function index()
	if not nixio.fs.access("/etc/config/hd-idle") then
		return
	end

	local page

	page = entry({"admin", "services", "hd_idle"}, cbi("hd_idle"), _("hd-idle"), 60)
	page.dependent = true
end