summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shorewall-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/shorewall-model.lua b/shorewall-model.lua
index e9ca529..8f39bdc 100644
--- a/shorewall-model.lua
+++ b/shorewall-model.lua
@@ -302,7 +302,7 @@ end
function getlogfile ()
local logfile = {}
- local cmdaction = "cat /var/log/messages | grep Shorewall"
+ local cmdaction = "grep Shorewall /var/log/messages"
local f, error = io.popen(cmdaction ,r)
local checkresult = f:read("*a")
f:close()