From 7b53b6cc73de349af77ecd73e00f60a9e679abd2 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 26 Feb 2009 15:40:33 +0000 Subject: Added fetch-crl ACF. git-svn-id: svn://svn.alpinelinux.org/acf/fetch-crl/trunk@1709 ab2d0c66-481e-0410-8bed-d214d4d58bed --- fetchcrl-controller.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 fetchcrl-controller.lua (limited to 'fetchcrl-controller.lua') diff --git a/fetchcrl-controller.lua b/fetchcrl-controller.lua new file mode 100644 index 0000000..0b957ba --- /dev/null +++ b/fetchcrl-controller.lua @@ -0,0 +1,19 @@ +-- the fetch-crl controller + +module (..., package.seeall) + +require("controllerfunctions") + +default_action = "status" + +status = function( self ) + return self.model.get_status() +end + +startstop = function( self ) + return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.get_status, self.clientdata) +end + +expert = function( self ) + return controllerfunctions.handle_form(self, self.model.get_configfile, self.model.update_configfile, self.clientdata, "Save", "Edit Configuration", "Configuration Saved") +end -- cgit v1.2.3