summaryrefslogtreecommitdiffstats
path: root/lvm2-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:27:57 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:27:57 +0000
commit66a237ad86a1d3657042589348685629c4360086 (patch)
tree39d686b4682872511ed47a3053db4d8dfb4fd96c /lvm2-model.lua
parent7f436a36d9a14dc4775f1979385edd61b121b945 (diff)
downloadacf-lvm2-66a237ad86a1d3657042589348685629c4360086.tar.bz2
acf-lvm2-66a237ad86a1d3657042589348685629c4360086.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 'lvm2-model.lua')
-rw-r--r--lvm2-model.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/lvm2-model.lua b/lvm2-model.lua
index b979b94..9a75d62 100644
--- a/lvm2-model.lua
+++ b/lvm2-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 processname = "lvm"
@@ -17,8 +17,12 @@ local path = "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
-- ################################################################################
-- 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()