From d5486de22228d4f1fd10e332cbf8e8dcd4680508 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 24 Apr 2008 13:43:11 +0000 Subject: Added destroy and on_unload functions. Moved saving of session from post_exec to on_unload. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-conf/trunk@1036 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lbu-controller.lua | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/lbu-controller.lua b/lbu-controller.lua index f258f5f..060a7b8 100644 --- a/lbu-controller.lua +++ b/lbu-controller.lua @@ -1,26 +1,11 @@ module(..., package.seeall) --- Set variables -local cfgfile - --- ################################################################################ --- LOCAL FUNCTIONS - -local function list_redir (self) - self.conf.action = "status" - self.conf.type = "redir" - error(self.conf) -end - -- ################################################################################ -- PUBLIC FUNCTIONS mvc={} function mvc.on_load (self, parent) - cfgfile = self:new("cfgfile") - if (self.worker[self.conf.action] == nil) or (self.conf.action == "init") then - self.worker[self.conf.action] = list_redir(self) - end + self.conf.default_action = "status" end function status (self) -- cgit v1.2.3