4 (c) 2008 Yanira <forum-2008@email.de>
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
10 http://www.apache.org/licenses/LICENSE-2.0
18 m = Map("hd-idle", "hd-idle",
19 translate("hd-idle is a utility program for spinning-down external " ..
20 "disks after a period of idle time."))
22 s = m:section(TypedSection, "hd-idle", translate("Settings"))
25 s:option(Flag, "enabled", translate("Enable"))
27 disk = s:option(Value, "disk", translate("Disk"))
29 for dev in nixio.fs.glob("/dev/[sh]d[a-z]") do
30 disk:value(nixio.fs.basename(dev))
33 s:option(Value, "idle_time_interval", translate("Idle-time")).default = 10
35 unit = s:option(ListValue, "idle_time_unit", translate("Idle-time unit"))
36 unit.default = "minutes"
37 unit:value("minutes", translate("min"))
38 unit:value("hours", translate("h"))