From 81b9907f5e0b372af29769e3aa569aa92a9661c0 Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Mon, 3 Nov 2008 15:56:43 +0000 Subject: DNSmasq added. Needs a little more work git-svn-id: svn://svn.alpinelinux.org/acf/dnsmasq/trunk@1573 ab2d0c66-481e-0410-8bed-d214d4d58bed --- dnsmasq-controller.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dnsmasq-controller.lua (limited to 'dnsmasq-controller.lua') diff --git a/dnsmasq-controller.lua b/dnsmasq-controller.lua new file mode 100644 index 0000000..c2b2e7e --- /dev/null +++ b/dnsmasq-controller.lua @@ -0,0 +1,23 @@ +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 config(self) + return controllerfunctions.handle_form(self, self.model.getconfig, self.model.setconfig, self.clientdata, "Save", "Edit Config", "Configuration Set") +end + +function expert(self) + return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config File", "Configuration File Set") +end + -- cgit v1.2.3