diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-10-03 20:13:44 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-10-03 20:13:44 +0000 |
commit | a0fc80ea045a64c0b03d9b0103da9e5644e6ca3a (patch) | |
tree | d592cb8b1075e9c45f7467acb4e7c72778ee5b2d /samba-controller.lua | |
download | acf-samba-a0fc80ea045a64c0b03d9b0103da9e5644e6ca3a.tar.bz2 acf-samba-a0fc80ea045a64c0b03d9b0103da9e5644e6ca3a.tar.xz |
Added samba controller.
git-svn-id: svn://svn.alpinelinux.org/acf/samba/trunk@1541 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'samba-controller.lua')
-rw-r--r-- | samba-controller.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/samba-controller.lua b/samba-controller.lua new file mode 100644 index 0000000..4083ce2 --- /dev/null +++ b/samba-controller.lua @@ -0,0 +1,22 @@ +module(..., package.seeall) + +-- Load libraries +require("controllerfunctions") + +default_action = "status" + +function status(self) + return self.model.getstatus() +end + +function startstop(self) + return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.getstatus, self.clientdata) +end + +function expert(self) + return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config", "Configuration Saved") +end + +function join(self) + return controllerfunctions.handle_form(self, self.model.get_join, self.model.set_join, self.clientdata, "Join", "Join Domain") +end |