summaryrefslogtreecommitdiffstats
path: root/openntpd-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:29:21 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:29:21 +0000
commit7e4ee0dd94ad37c10cd722916935822d79eea4fc (patch)
treee922e271714fd7e0cb350ad47d540b67a152c0db /openntpd-model.lua
parentfb75da980e3c877575571108f0cc6747ba8f7b67 (diff)
downloadacf-openntpd-7e4ee0dd94ad37c10cd722916935822d79eea4fc.tar.bz2
acf-openntpd-7e4ee0dd94ad37c10cd722916935822d79eea4fc.tar.xz
Started work on updating for acf-core-0.15
Removed controllerfunctions library (still needs more work and corresponding work in model) Updated startstop functionality and deleted view Updated for viewfunctions to htmlviewfunctions and modified require statements for acf libraries
Diffstat (limited to 'openntpd-model.lua')
-rw-r--r--openntpd-model.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/openntpd-model.lua b/openntpd-model.lua
index a3dbbae..9924701 100644
--- a/openntpd-model.lua
+++ b/openntpd-model.lua
@@ -2,8 +2,8 @@ module (..., package.seeall)
-- Load libraries
require("modelfunctions")
-require("fs")
-require("format")
+fs = require("acf.fs")
+format = require("acf.format")
-- Set variables
local configfile = "/etc/ntpd.conf"
@@ -52,8 +52,12 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
-function startstop_service(action)
- return modelfunctions.startstop_service(processname, action)
+function get_startstop(clientdata)
+ return modelfunctions.get_startstop(processname)
+end
+
+function startstop_service(startstop, action)
+ return modelfunctions.startstop_service(startstop, action)
end
function getstatus()