diff options
Diffstat (limited to 'rc-controller.lua')
-rw-r--r-- | rc-controller.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/rc-controller.lua b/rc-controller.lua new file mode 100644 index 0000000..3c00c41 --- /dev/null +++ b/rc-controller.lua @@ -0,0 +1,15 @@ +module (..., package.seeall) + +require("controllerfunctions") + +default_action = "status" + +status = function(self) + return self.model.status() +end + +edit = function(self) + return controllerfunctions.handle_form(self, + function() return self.model.read_sequence(self.clientdata.servicename) end, + self.model.update_sequence, self.clientdata, "Save", "Edit Startup Sequence") +end |