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-controller.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dansguardian-controller.lua') diff --git a/dansguardian-controller.lua b/dansguardian-controller.lua index 73813e1..d907f00 100644 --- a/dansguardian-controller.lua +++ b/dansguardian-controller.lua @@ -31,6 +31,8 @@ end general = function( self ) + local info = { status = { value = "stopped" }, version = { value = self.model.get_dansguardian_version() }, srvctrl = { value = srvctrl} }; + local option = { script = ENV["SCRIPT_NAME"], prefix = self.conf.prefix, controller = self.conf.controller, @@ -61,9 +63,10 @@ general = function( self ) end service.status = self.model.get_status() + info.status.value = service.status service.config, service.cfgerr = self.model.get_general_config() - return ( cfe ({ option = option, service = service }) ) + return ( cfe ({ option = option, service = service, info = info }) ) end advanced = function( self ) -- cgit v1.2.3