From 0f852344dc6758605321bccec501d0c26c6e4c6f Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Thu, 24 Jan 2008 20:06:20 +0000 Subject: Added information on alpine version git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@642 ab2d0c66-481e-0410-8bed-d214d4d58bed --- health-model.lua | 1 + 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 @@

System

+

Versions and names

+
+
+

Uptime

@@ -9,8 +13,6 @@
-

Name

-

Memory

-- cgit v1.2.3