summaryrefslogtreecommitdiffstats
path: root/rc-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-11 12:57:42 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-11 12:57:42 +0000
commitea59dcbdbed15ca5bd60f50cd8107451e74928dd (patch)
tree4f2103a8f01953cdc8d201cbc22c585a42a3a5cd /rc-controller.lua
parentecdbb8c4d4a9aa37f6c3e1ece96f0cf7f3c8fd6b (diff)
downloadacf-alpine-baselayout-ea59dcbdbed15ca5bd60f50cd8107451e74928dd.tar.bz2
acf-alpine-baselayout-ea59dcbdbed15ca5bd60f50cd8107451e74928dd.tar.xz
Added rc controller to alpine-baselayout and rc functionality to processinfo library. Changed status Enabled/Disabled to Running/Stopped. Added links to status pages to install package and schedule autostart.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1552 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'rc-controller.lua')
-rw-r--r--rc-controller.lua15
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