summaryrefslogtreecommitdiffstats
path: root/rc-controller.lua
blob: 3c00c4165d71b2ff922b72c26dd87f80ed5fc1c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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