From 836626260ab0b9bde6d10a3d50b6ba9d581e2d4e Mon Sep 17 00:00:00 2001 From: Van Waholtz Date: Sat, 9 May 2020 10:04:25 +0800 Subject: luci-app-hd-idle: convert to client side rendering Signed-off-by: Van Waholtz --- .../luci-app-hd-idle/luasrc/model/cbi/hd_idle.lua | 29 ---------------------- 1 file changed, 29 deletions(-) delete mode 100644 applications/luci-app-hd-idle/luasrc/model/cbi/hd_idle.lua (limited to 'applications/luci-app-hd-idle/luasrc') 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 --- 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 -- cgit v1.2.3