From b6544574cf7e3dd05702b3b04d3da9deb6ad985f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 7 Oct 2009 17:35:38 +0000 Subject: [PATCH] applications/hd-idle: fix crash in cbi model --- applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 60817db83..929b7ed07 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 -- 2.25.1