projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-mod-admin-full: mount points SWAP fix
[project/luci.git]
/
modules
/
luci-mod-admin-full
/
luasrc
/
model
/
cbi
/
admin_system
/
fstab.lua
diff --git
a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua
b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua
index
fd61758
..
d4e834d
100644
(file)
--- a/
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua
+++ b/
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua
@@
-190,7
+190,12
@@
dev.cfgvalue = function(self, section)
if v then return "Label: %s" % v end
v = Value.cfgvalue(self, section) or "?"
if v then return "Label: %s" % v end
v = Value.cfgvalue(self, section) or "?"
- return size[v] and "%s (%s MB)" % {v, size[v]} or v
+ e = v and devices[v]
+ if v and e and e.size then
+ return "%s (%s MB)" % {v, e.size}
+ else
+ return v
+ end
end
return m
end
return m