From 07769b5594c70bbbe9b50dee3ea929d09994654d Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 5 Dec 2006 23:11:20 +0000 Subject: [PATCH] Fix minor bug in OpenWRT patch git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5063 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-lite/shorewall-lite | 2 +- Shorewall/shorewall | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall-lite/shorewall-lite b/Shorewall-lite/shorewall-lite index 030978216..386b1f6df 100755 --- a/Shorewall-lite/shorewall-lite +++ b/Shorewall-lite/shorewall-lite @@ -92,7 +92,7 @@ get_config() { [ -z "$LOGFILE" ] && LOGFILE=/var/log/messages - if ( ps ax 2> /dev/null | qt grep 'syslogd.*-C' ) ; then + if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then LOGREAD="logread" elif [ -f $LOGFILE ]; then LOGREAD="cat $LOGFILE" diff --git a/Shorewall/shorewall b/Shorewall/shorewall index e94c6bd15..ade219a93 100755 --- a/Shorewall/shorewall +++ b/Shorewall/shorewall @@ -128,7 +128,7 @@ get_config() { [ -z "$LOGFILE" ] && LOGFILE=/var/log/messages - if ( ps ax 2> /dev/null | qt grep 'syslogd.*-C' ) ; then + if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then LOGREAD="logread" elif [ -f $LOGFILE ]; then LOGREAD="cat $LOGFILE"