mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-19 17:28:35 +02:00
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:
parent
6e68aa0dfe
commit
07769b5594
@ -92,7 +92,7 @@ get_config() {
|
|||||||
|
|
||||||
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages
|
[ -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"
|
LOGREAD="logread"
|
||||||
elif [ -f $LOGFILE ]; then
|
elif [ -f $LOGFILE ]; then
|
||||||
LOGREAD="cat $LOGFILE"
|
LOGREAD="cat $LOGFILE"
|
||||||
|
@ -128,7 +128,7 @@ get_config() {
|
|||||||
|
|
||||||
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages
|
[ -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"
|
LOGREAD="logread"
|
||||||
elif [ -f $LOGFILE ]; then
|
elif [ -f $LOGFILE ]; then
|
||||||
LOGREAD="cat $LOGFILE"
|
LOGREAD="cat $LOGFILE"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user