diff options
-rw-r--r-- | openntpd-controller.lua | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/openntpd-controller.lua b/openntpd-controller.lua index 6291e6c..784a851 100644 --- a/openntpd-controller.lua +++ b/openntpd-controller.lua @@ -7,12 +7,6 @@ require("validator") -- ################################################################################ -- LOCAL FUNCTIONS -local function list_redir(self) - self.conf.action = "read" - self.conf.type = "redir" - error (self.conf) -end - local function displaycmdmanagement(pidofstatus) -- Add a management buttons local management = {} @@ -62,12 +56,7 @@ end -- ################################################################################ -- PUBLIC FUNCTIONS -mvc={} -function mvc.on_load(self, parent) - if (self.worker[self.conf.action] == nil ) or ( self.conf.action == "init" ) then - self.worker[self.conf.action] = list_redir(self) - end -end +default_action = "status" function config(self) local errors = {} |