Fix minor bug in OpenWRT patch

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5063 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-12-05 23:11:20 +00:00
parent 6e68aa0dfe
commit 07769b5594
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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"