summaryrefslogtreecommitdiffstats
path: root/health-model.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-24 20:06:20 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-24 20:06:20 +0000
commit0f852344dc6758605321bccec501d0c26c6e4c6f (patch)
treedf673a6e8151efac05e1cfacd6ffb2d7c8ceb8bd /health-model.lua
parent7b5422d3943e6243d3b48da4f24cc024c01e49bb (diff)
downloadacf-alpine-baselayout-0f852344dc6758605321bccec501d0c26c6e4c6f.tar.bz2
acf-alpine-baselayout-0f852344dc6758605321bccec501d0c26c6e4c6f.tar.xz
Added information on alpine version
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@642 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'health-model.lua')
-rw-r--r--health-model.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/health-model.lua b/health-model.lua
index 0594738..374368d 100644
--- a/health-model.lua
+++ b/health-model.lua
@@ -35,6 +35,7 @@ get_system = function (self)
local system = {}
system.uptime = querycmd("/usr/bin/uptime")
system.date = querycmd("/bin/date")
+ system.version = fs.read_file("/etc/alpine-release") or "Unknown"
system.timezone = date.what_tz()
system.uname = querycmd("/bin/uname -a")
local used, useddebug = getpercentage(querycmd("/usr/bin/free"), "Total:", 3, 4)