summaryrefslogtreecommitdiffstats
path: root/shorewall-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-08-15 11:40:37 +0000
committerTed Trask <ttrask01@yahoo.com>2012-08-15 11:40:37 +0000
commit1c7304ac542c7e4983c4b6a3a515b8df3fe67515 (patch)
treee53f76d1e6354498f6b29b8c880bb943c3129372 /shorewall-model.lua
parentcc4bf7ac97f1fdcc156ebe1f3547e678e8bd7311 (diff)
downloadacf-shorewall-1c7304ac542c7e4983c4b6a3a515b8df3fe67515.tar.bz2
acf-shorewall-1c7304ac542c7e4983c4b6a3a515b8df3fe67515.tar.xz
Removed check function as it is now handled in startstop
Diffstat (limited to 'shorewall-model.lua')
-rw-r--r--shorewall-model.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/shorewall-model.lua b/shorewall-model.lua
index 7326094..d438b66 100644
--- a/shorewall-model.lua
+++ b/shorewall-model.lua
@@ -189,15 +189,6 @@ function startstop_service(self, startstop, action)
return modelfunctions.startstop_service(startstop, action)
end
-function configcheck ()
- local checkresult = {">> Check starts at: " .. os.date() .. "\n"}
- local f = io.popen("/etc/init.d/shorewall check 2>&1")
- checkresult[2] = f:read("*a") or ""
- f:close()
- checkresult[3] = ">> Check stops at: "..os.date()
- return cfe({ type="longtext", value=table.concat(checkresult, "\n"), label="Result of checking config" })
-end
-
function getlogfile ()
local logfilepath = format.parse_ini_file(fs.read_file(configfile) or "","","LOGFILE") or ""
return cfe({ value=logfilepath, label="Shorewall logfile" })