summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-06-01 11:01:55 +0000
committerTed Trask <ttrask01@yahoo.com>2009-06-01 11:01:55 +0000
commit5de7174fc9ab85eb0500e2b2c2b16ee92f4ae1cf (patch)
tree79c1e38a0d5fb02f3e64bc67615bb977a423d01f
parentd8908e9f9821a8b979a65b216da95889dd1f23e6 (diff)
downloadacf-alpine-baselayout-5de7174fc9ab85eb0500e2b2c2b16ee92f4ae1cf.tar.bz2
acf-alpine-baselayout-5de7174fc9ab85eb0500e2b2c2b16ee92f4ae1cf.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 52b4fa9..663940b 100644
--- a/health-model.lua
+++ b/health-model.lua
@@ -62,7 +62,7 @@ get_storage = function (self)
local name = "/dev/none"
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