summaryrefslogtreecommitdiffstats
path: root/squid-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 /squid-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 'squid-model.lua')
-rw-r--r--squid-model.lua14
1 files changed, 14 insertions, 0 deletions
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"