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 --- dansguardian-model.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'dansguardian-model.lua') diff --git a/dansguardian-model.lua b/dansguardian-model.lua index 3660b37..b9ade6b 100644 --- a/dansguardian-model.lua +++ b/dansguardian-model.lua @@ -43,6 +43,21 @@ service_control = function( control ) return retval end +get_dansguardian_version = function() + + local retval = "" + + local ptr = io.popen( "/usr/sbin/dansguardian -v" ) + if ptr ~= nil then + retval = ptr:read( "*l" ) + ptr:close() + else + retval = "Error - Failed to program version" + end + + return retval +end + get_general_config = function() local retval = {} -- cgit v1.2.3