summaryrefslogtreecommitdiffstats
path: root/squid-controller.lua
diff options
context:
space:
mode:
authorAndreas Brodmann <andreas.brodmann@gmail.com>2007-11-26 14:13:11 +0000
committerAndreas Brodmann <andreas.brodmann@gmail.com>2007-11-26 14:13:11 +0000
commit31f83752e43f441acaffa5c516f59f57005e802e (patch)
treeb27587d930e6a192aba0ea15821a3f40492c3e76 /squid-controller.lua
parentd65d428af973665ccd3c3392e2ea8a69b43701f1 (diff)
downloadacf-squid-31f83752e43f441acaffa5c516f59f57005e802e.tar.bz2
acf-squid-31f83752e43f441acaffa5c516f59f57005e802e.tar.xz
save ongoing work on acf-squid
git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@365 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'squid-controller.lua')
-rw-r--r--squid-controller.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/squid-controller.lua b/squid-controller.lua
index a651d6c..f8e5f56 100644
--- a/squid-controller.lua
+++ b/squid-controller.lua
@@ -81,3 +81,20 @@ advanced = function( self )
return ( cfe ({ option = option, service = service }) )
end
+cfilter = function( self )
+
+ local option = { script = ENV["SCRIPT_NAME"],
+ prefix = self.conf.prefix,
+ controller = self.conf.controller,
+ action = self.conf.action,
+ extra = ""
+ }
+
+ local service = { message="", status="", config="" }
+
+ service.status = self.model.get_status()
+ service.config = self.model.get_adv_config()
+
+ return ( cfe ({ option = option, service = service }) )
+end
+