From a6120a0548246e75dbc247e15326821a7043df34 Mon Sep 17 00:00:00 2001 From: Andreas Brodmann Date: Wed, 16 Jan 2008 13:31:59 +0000 Subject: updates to the squid/dansguardian gui, e.g. get_version stuff, unified the apps to look the same as the others git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@589 ab2d0c66-481e-0410-8bed-d214d4d58bed --- squid-model.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'squid-model.lua') diff --git a/squid-model.lua b/squid-model.lua index 0a080a2..3b55d60 100644 --- a/squid-model.lua +++ b/squid-model.lua @@ -65,6 +65,20 @@ get_status = function() return retval end +get_squid_version = function() + + local retval = "" + + local ptr = io.popen( "/usr/sbin/squid -v" ) + retval = ptr:read( "*l" ) + ptr:close() + if retval == nil then + retval = "Error - can't retrieve squid version" + end + + return retval +end + get_status_winbindd = function() local retval = "stopped" -- cgit v1.2.3