diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-01-24 20:06:20 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-01-24 20:06:20 +0000 |
commit | 0f852344dc6758605321bccec501d0c26c6e4c6f (patch) | |
tree | df673a6e8151efac05e1cfacd6ffb2d7c8ceb8bd | |
parent | 7b5422d3943e6243d3b48da4f24cc024c01e49bb (diff) | |
download | acf-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
-rw-r--r-- | health-model.lua | 1 | ||||
-rw-r--r-- | health-system-html.lsp | 6 |
2 files changed, 5 insertions, 2 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) diff --git a/health-system-html.lsp b/health-system-html.lsp index a4174b2..712a452 100644 --- a/health-system-html.lsp +++ b/health-system-html.lsp @@ -2,6 +2,10 @@ <h1>System</h1> +<h2>Versions and names</h2> +<pre><?= view.system.version ?></pre> +<pre><?= view.system.uname ?></pre> + <h2>Uptime</h2> <pre><?= view.system.uptime ?></pre> @@ -9,8 +13,6 @@ <pre><?= view.system.date ?></pre> <pre><?= view.system.timezone ?></pre> -<h2>Name</h2> -<pre><?= view.system.uname ?></pre> <h2>Memory</h2> <pre><?= view.system.memory.value ?></pre> |