diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-10-24 17:22:48 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-10-24 17:22:48 +0000 |
commit | ace4f4934cb4610c287bd240318ea9db12ecdf89 (patch) | |
tree | 82836645293257e001dd82b8d56c984f66e78d9a /health-model.lua | |
parent | f5167a60d2987c812534dccc04fa7a514aff5c19 (diff) | |
download | acf-alpine-baselayout-ace4f4934cb4610c287bd240318ea9db12ecdf89.tar.bz2 acf-alpine-baselayout-ace4f4934cb4610c287bd240318ea9db12ecdf89.tar.xz |
Modified health to add sda harddrives to storage health.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1566 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'health-model.lua')
-rw-r--r-- | health-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/health-model.lua b/health-model.lua index 7a25c83..641a804 100644 --- a/health-model.lua +++ b/health-model.lua @@ -62,11 +62,11 @@ 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/hd%a%d+") then + elseif string.match(line, "^/dev/[hs]d%a%d+") then if not storage.hd then storage.hd = cfe({ type="group", value={}, label="Hard drives" }) end - local name = string.match(line, "^(/dev/hd%a%d+)") + local name = string.match(line, "^(/dev/[hs]d%a%d+)") storage.hd.value[name] = cfe({ value=string.match(disk, "[^\n]*\n")..line, label="Hard Drive Capacity" }) storage.hd.value[name].used = string.match(line, name.."%s*%S*%s*%S*%s*%S*%s*(%S*)%%") end |