diff --git a/Shorewall-lite/shorewall-lite b/Shorewall-lite/shorewall-lite index 395554468..91da2be07 100755 --- a/Shorewall-lite/shorewall-lite +++ b/Shorewall-lite/shorewall-lite @@ -94,9 +94,9 @@ get_config() { [ -z "$LOGFILE" ] && LOGFILE=/var/log/messages if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then - LOGREAD="logread | tac" + g_logread="logread | tac" elif [ -r $LOGFILE ]; then - LOGREAD="tac $LOGFILE" + g_logread="tac $LOGFILE" else echo "LOGFILE ($LOGFILE) does not exist!" >&2 exit 2 @@ -469,6 +469,7 @@ g_use_verbosity= g_noroutes= g_timestamp= g_recovering= +g_logread= finished=0 diff --git a/Shorewall6-lite/shorewall6-lite b/Shorewall6-lite/shorewall6-lite index 541cce77b..54777618d 100755 --- a/Shorewall6-lite/shorewall6-lite +++ b/Shorewall6-lite/shorewall6-lite @@ -94,9 +94,9 @@ get_config() { [ -z "$LOGFILE" ] && LOGFILE=/var/log/messages if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then - LOGREAD="logread | tac" + g_logread="logread | tac" elif [ -r $LOGFILE ]; then - LOGREAD="tac $LOGFILE" + g_logread="tac $LOGFILE" else echo "LOGFILE ($LOGFILE) does not exist!" >&2 exit 2 @@ -453,6 +453,7 @@ g_noroutes= g_timestamp= g_recovering= g_purge= +g_logread= finished=0