From 1c7304ac542c7e4983c4b6a3a515b8df3fe67515 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 15 Aug 2012 11:40:37 +0000 Subject: Removed check function as it is now handled in startstop --- shorewall-model.lua | 9 --------- 1 file changed, 9 deletions(-) (limited to 'shorewall-model.lua') 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" }) -- cgit v1.2.3