diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-05-26 16:03:44 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-05-26 16:03:44 +0000 |
commit | 4943770cd49f3fae629b91913c54cdecad0ae398 (patch) | |
tree | d6458db03096fc0558f2eb1d7fb71f6201d45294 /health-model.lua | |
parent | d8908e9f9821a8b979a65b216da95889dd1f23e6 (diff) | |
download | acf-alpine-baselayout-4943770cd49f3fae629b91913c54cdecad0ae398.tar.bz2 acf-alpine-baselayout-4943770cd49f3fae629b91913c54cdecad0ae398.tar.xz |
Update for alpine 1.9 openrc and minor changes for RAM disk and modules.
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 52b4fa9..7f38f83 100644 --- a/health-model.lua +++ b/health-model.lua @@ -55,11 +55,11 @@ get_storage = function (self) local name = string.match(line, "^(/dev/fd%d+)") storage.floppy.value[name] = cfe({ value=string.match(disk, "[^\n]*\n")..line, label="Floppy Capacity" }) storage.floppy.value[name].used = string.match(line, name.."%s*%S*%s*%S*%s*%S*%s*(%S*)%%") - elseif string.match(line, "^/dev/none") then + elseif string.match(line, "^/dev/none") or string.match(line, "^tmpfs") then if not storage.ramdisk then storage.ramdisk = cfe({ type="group", value={}, label="RAM disks" }) end - local name = "/dev/none" + 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 |