summaryrefslogtreecommitdiffstats
path: root/openssh-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:29:47 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:29:47 +0000
commit0b9bf67d6e1407f0ada461f20bacdca2b8201abc (patch)
treec3dc7a1bcb2ea406e1cc5d4c14c2ab69e161e1b0 /openssh-model.lua
parent681852c990ed9bcaeebce9d62e110239b7ca0498 (diff)
downloadacf-openssh-0b9bf67d6e1407f0ada461f20bacdca2b8201abc.tar.bz2
acf-openssh-0b9bf67d6e1407f0ada461f20bacdca2b8201abc.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 'openssh-model.lua')
-rw-r--r--openssh-model.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/openssh-model.lua b/openssh-model.lua
index 2ece192..ab3f61b 100644
--- a/openssh-model.lua
+++ b/openssh-model.lua
@@ -3,9 +3,9 @@ module(..., package.seeall)
-- Load libraries
require("modelfunctions")
require("posix")
-require("validator")
-require("fs")
-require("format")
+validator = require("acf.validator")
+fs = require("acf.fs")
+format = require("acf.format")
-- Set variables
local configfile = "/etc/ssh/sshd_config"
@@ -47,8 +47,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()