From 5e4f7d218ce4c673bc362390fcfad083463b1727 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 16 Apr 2008 13:06:48 +0000 Subject: Updating makefile and changeing the way logfiles are fetched. git-svn-id: svn://svn.alpinelinux.org/acf/ipsec-tools/trunk@1010 ab2d0c66-481e-0410-8bed-d214d4d58bed --- Makefile | 2 +- ipsectools-model.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e2ad8cb..9d4578b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ APP_NAME=ipsec-tools PACKAGE=acf-$(APP_NAME) -VERSION=0.3.0 +VERSION=0.3.1 APP_DIST=\ ipsectools-controller.lua \ diff --git a/ipsectools-model.lua b/ipsectools-model.lua index 49f259b..38c1fbf 100644 --- a/ipsectools-model.lua +++ b/ipsectools-model.lua @@ -250,7 +250,7 @@ function update_filecontent2 (self, modifications) end function get_logfile () local file = {} - local cmdtxt = "cat /var/log/messages | grep " .. processname + local cmdtxt = "grep " .. processname .. " /var/log/messages" local cmd, error = io.popen(cmdtxt ,r) local cmdoutput = cmd:read("*a") cmd:close() -- cgit v1.2.3