Commit 172b5853 authored by Ted Trask's avatar Ted Trask
Browse files

Use modelfunctions to get status

parent ec006ba8
......@@ -2,7 +2,6 @@ module(..., package.seeall)
-- Load libraries
require("modelfunctions")
processinfo = require("acf.processinfo")
fs = require("acf.fs")
format = require("acf.format")
......@@ -19,17 +18,7 @@ local path = "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
-- PUBLIC FUNCTIONS
function getstatus()
local status = {}
local value, errtxt = processinfo.package_version(packagename)
status.version = cfe({
label="Program version",
value=value,
errtxt=errtxt,
name=packagename
})
return cfe({ type="group", value=status, label="Heimdal Status" })
return modelfunctions.getstatus(nil, packagename, "Heimdal Status")
end
function get_filedetails()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment