summaryrefslogtreecommitdiffstats
path: root/snort-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:57:28 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:57:28 +0000
commit1128ccf6f3e8c4b75fd02257770e9ceb31192b42 (patch)
treec29369f348fc387678d0de7eea8c0e481c08c8d8 /snort-model.lua
parentf3724792f225ab8a0f0503b229b0de586f06aae2 (diff)
downloadacf-snort-1128ccf6f3e8c4b75fd02257770e9ceb31192b42.tar.bz2
acf-snort-1128ccf6f3e8c4b75fd02257770e9ceb31192b42.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 'snort-model.lua')
-rw-r--r--snort-model.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/snort-model.lua b/snort-model.lua
index 2e54202..2c3a980 100644
--- a/snort-model.lua
+++ b/snort-model.lua
@@ -3,7 +3,7 @@ module (..., package.seeall)
-- Load libraries
require("modelfunctions")
-require("fs")
+fs = require("acf.fs")
-- Set variables
local packagename = "snort"
@@ -21,8 +21,12 @@ function getstatus()
return modelfunctions.getstatus(processname, packagename, "Snort Status")
end
-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 read_alert()