summaryrefslogtreecommitdiffstats
path: root/shorewall-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:56:44 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:56:44 +0000
commit4467798e4d334fea742912bb3ba2588668826fe4 (patch)
treea53624edb58ad7e0ae1593f9f77399212f074474 /shorewall-model.lua
parent6969a341d6f6435ff0b172e8ba8fce5e40fe8571 (diff)
downloadacf-shorewall-4467798e4d334fea742912bb3ba2588668826fe4.tar.bz2
acf-shorewall-4467798e4d334fea742912bb3ba2588668826fe4.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 'shorewall-model.lua')
-rw-r--r--shorewall-model.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/shorewall-model.lua b/shorewall-model.lua
index 3669fc0..5aef6f8 100644
--- a/shorewall-model.lua
+++ b/shorewall-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/shorewall/shorewall.conf"
@@ -181,8 +181,12 @@ function getstatusdetails()
return cfe({ value=programstate, label="Shorewall status report" })
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 configcheck ()