applications/hd-idle: fix crash in cbi model
This commit is contained in:
parent
a0dbf69b83
commit
b6544574cf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue