summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-06-01 10:50:50 +0000
committerTed Trask <ttrask01@yahoo.com>2009-06-01 10:50:50 +0000
commit29be5d0ed57b830f7efc9ea1cc08bb0be415b08d (patch)
tree48f1e3f06d047cd41cbb810a206ffea801643a7e
parent4943770cd49f3fae629b91913c54cdecad0ae398 (diff)
downloadacf-alpine-baselayout-29be5d0ed57b830f7efc9ea1cc08bb0be415b08d.tar.bz2
acf-alpine-baselayout-29be5d0ed57b830f7efc9ea1cc08bb0be415b08d.tar.xz
Attempt to add other mounted hard drives to status list.
-rw-r--r--health-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/health-model.lua b/health-model.lua
index 7f38f83..1ce0d4c 100644
--- a/health-model.lua
+++ b/health-model.lua
@@ -62,7 +62,7 @@ get_storage = function (self)
local name = string.match(line, "^%S+")
storage.ramdisk.value[name] = cfe({ value=string.match(disk, "[^\n]*\n")..line, label="RAM Disk Capacity" })
storage.ramdisk.value[name].used = string.match(line, name.."%s*%S*%s*%S*%s*%S*%s*(%S*)%%")
- elseif string.match(line, "^/dev/[hs]d%a%d+") then
+ elseif string.match(line, "^/dev/") and not string.match(line, "^/dev/cdrom") and not string.match(line, "^/dev/loop") then
if not storage.hd then
storage.hd = cfe({ type="group", value={}, label="Hard drives" })
end