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:
bf61a13
)
* luci/app/hd_idle: fix error in cbi model
author
Jo-Philipp Wich
<redacted>
Fri, 3 Oct 2008 12:00:56 +0000
(12:00 +0000)
committer
Jo-Philipp Wich
<redacted>
Fri, 3 Oct 2008 12:00:56 +0000
(12:00 +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 f7040a551bfbc1be4ad55a8e35a26f4222fbc4e0..e880aaf639dda1e2d6dc7ef9297ef0382cd42f75 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT