diff options
author | Van Waholtz <vanwaholtz@gmail.com> | 2020-05-09 10:04:25 +0800 |
---|---|---|
committer | Van Waholtz <vanwaholtz@gmail.com> | 2020-05-11 22:07:06 +0800 |
commit | 836626260ab0b9bde6d10a3d50b6ba9d581e2d4e (patch) | |
tree | f3a5c260463c00c22ea1f7913f99632acb2695d8 /applications/luci-app-hd-idle/luasrc | |
parent | dd749961957c6a18bd3a831f27f6fa8f55dbd2d3 (diff) |
luci-app-hd-idle: convert to client side rendering
Signed-off-by: Van Waholtz <vanwaholtz@gmail.com>
Diffstat (limited to 'applications/luci-app-hd-idle/luasrc')
-rw-r--r-- | applications/luci-app-hd-idle/luasrc/model/cbi/hd_idle.lua | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/applications/luci-app-hd-idle/luasrc/model/cbi/hd_idle.lua b/applications/luci-app-hd-idle/luasrc/model/cbi/hd_idle.lua deleted file mode 100644 index c15fdc028a..0000000000 --- a/applications/luci-app-hd-idle/luasrc/model/cbi/hd_idle.lua +++ /dev/null @@ -1,29 +0,0 @@ --- Copyright 2008 Yanira <forum-2008@email.de> --- Licensed to the public under the Apache License 2.0. - -require("nixio.fs") - -m = Map("hd-idle", translate("HDD Idle"), - translate("HDD Idle is a utility program for spinning-down external " .. - "disks after a period of idle time.")) - -s = m:section(TypedSection, "hd-idle", translate("Settings")) -s.anonymous = true - -s:option(Flag, "enabled", translate("Enable")) - -disk = s:option(Value, "disk", translate("Disk")) -disk.rmempty = true -for dev in nixio.fs.glob("/dev/[sh]d[a-z]") do - disk:value(nixio.fs.basename(dev)) -end - -s:option(Value, "idle_time_interval", translate("Idle time")).default = 10 -s.rmempty = true -unit = s:option(ListValue, "idle_time_unit", translate("Idle time unit")) -unit.default = "minutes" -unit:value("minutes", translate("min")) -unit:value("hours", translate("h")) -unit.rmempty = true - -return m |