summaryrefslogtreecommitdiffstats
path: root/dansguardian-model.lua
diff options
context:
space:
mode:
authorAndreas Brodmann <andreas.brodmann@gmail.com>2008-01-16 13:31:59 +0000
committerAndreas Brodmann <andreas.brodmann@gmail.com>2008-01-16 13:31:59 +0000
commita6120a0548246e75dbc247e15326821a7043df34 (patch)
treec2dfcbabd347a680fa1617381006176a4f52fc7d /dansguardian-model.lua
parent2e98280f07da84950af2fa5c2cdadfedf3590c05 (diff)
downloadacf-squid-a6120a0548246e75dbc247e15326821a7043df34.tar.bz2
acf-squid-a6120a0548246e75dbc247e15326821a7043df34.tar.xz
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
Diffstat (limited to 'dansguardian-model.lua')
-rw-r--r--dansguardian-model.lua15
1 files changed, 15 insertions, 0 deletions
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 = {}