From ace4f4934cb4610c287bd240318ea9db12ecdf89 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 24 Oct 2008 17:22:48 +0000 Subject: 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 --- health-model.lua | 4 ++-- 1 file 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 -- cgit v1.2.3