diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-04-18 01:23:12 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-04-18 01:23:12 +0000 |
commit | 15eff0f588679d3743475941345da9a46544f431 (patch) | |
tree | 9d17472b8f1935736fbab27e93eb1bb436ae4009 /iptables-model.lua | |
parent | c7d77f2707c2898515042ab3ed22dfa10f15e47c (diff) | |
download | acf-iptables-15eff0f588679d3743475941345da9a46544f431.tar.bz2 acf-iptables-15eff0f588679d3743475941345da9a46544f431.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 'iptables-model.lua')
-rw-r--r-- | iptables-model.lua | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/iptables-model.lua b/iptables-model.lua index d1443d3..162c357 100644 --- a/iptables-model.lua +++ b/iptables-model.lua @@ -2,9 +2,9 @@ module(..., package.seeall) -- Load libraries require("modelfunctions") -require("fs") -require("format") -require("validator") +fs = require("acf.fs") +format = require("acf.format") +validator = require("acf.validator") -- Set variables local packagename = "iptables" @@ -562,6 +562,10 @@ function updaterulesfile(filedetails) return modelfunctions.setfiledetails(filedetails, {rulesfile}) end -function startstop_service(action) - return modelfunctions.startstop_service(servicename, action, {"Start", "Stop", "Restart", "Save", "Reload", "Panic"}) +function get_startstop(clientdata) + return modelfunctions.get_startstop(servicename) +end + +function startstop_service(startstop, action) + return modelfunctions.startstop_service(startstop, action) end |