summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-hd_idle
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-10-03 12:00:56 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-10-03 12:00:56 +0000
commitd6c94ae69c037355a6aa865544a78346de6761a4 (patch)
treeb0a6029a17f9411aaf396a4525f2bb50f6e318f7 /applications/luci-hd_idle
parentbf61a13e30e21f1a5355e9f5464670b628438cfc (diff)
* luci/app/hd_idle: fix error in cbi model
Diffstat (limited to 'applications/luci-hd_idle')
-rw-r--r--applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua b/applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua
index f7040a551..e880aaf63 100644
--- a/applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua
+++ b/applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua
@@ -23,7 +23,8 @@ s.anonymous = true
s:option(Flag, "enabled", translate("enabled", "Enable"))
-disk = s:option(Value, "disk", translate("disk")).rmempty = true
+disk = s:option(Value, "disk", translate("disk"))
+disk.rmempty = true
for _, dev in ipairs(luci.fs.glob("/dev/[sh]d[a-z]")) do
disk:value(luci.fs.basename(dev))
end