summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-hd_idle/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-07 17:35:38 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-07 17:35:38 +0000
commitb6544574cf7e3dd05702b3b04d3da9deb6ad985f (patch)
tree93f717e304fd08e23ba4d3223cc602569058dd7d /applications/luci-hd_idle/luasrc/model
parenta0dbf69b83e932370562948146f08195c6cf130d (diff)
applications/hd-idle: fix crash in cbi model
Diffstat (limited to 'applications/luci-hd_idle/luasrc/model')
-rw-r--r--applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua2
1 files changed, 1 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 60817db832..929b7ed075 100644
--- a/applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua
+++ b/applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua
@@ -24,7 +24,7 @@ s:option(Flag, "enabled", translate("enable", "Enable"))
disk = s:option(Value, "disk", translate("disk"))
disk.rmempty = true
-for _, dev in nixio.fs.glob("/dev/[sh]d[a-z]") do
+for dev in nixio.fs.glob("/dev/[sh]d[a-z]") do
disk:value(nixio.fs.basename(dev))
end