git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
a0dbf69
)
applications/hd-idle: fix crash in cbi model
author
Jo-Philipp Wich
<redacted>
Wed, 7 Oct 2009 17:35:38 +0000
(17:35 +0000)
committer
Jo-Philipp Wich
<redacted>
Wed, 7 Oct 2009 17:35:38 +0000
(17:35 +0000)
applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua
patch
|
blob
|
history
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 60817db83269d51f1bce2c4d01a96d6b256e6986..929b7ed075ca9817940a132e9f4ba70ab606d8c4 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT