On 10/27/2015 5:54 PM, Tom Eastep wrote:
> On 10/27/2015 11:38 AM, matt darfeuille wrote:
>> On openwrt the logs are not saved in a file, would it be possible to
>> specify a command(logread) instead of a filename for the variable
>> LOGFILE in shorewall.conf?:)
>> EG:
>> LOGFILE=logread
>>
>
> For years, Shorewall has had code that tries to deal with this issue:
>
> if [ -n "$(syslog_circular_buffer)" ]; then
> g_logread="logread | tac"
> elif [ -r $LOGFILE ]; then
> g_logread="tac $LOGFILE"
> else
> fatal_error "LOGFILE ($LOGFILE) does not exist! ..."
> fi
>
> Has OpenWRT changed so that this code doesn't work?
>
More context:
if [ -z "$LOGFILE" ]; then
LOGFILE=/var/log/messages
if [ -n "$(syslog_circular_buffer)" ]; then
g_logread="logread | tac"
elif [ -r $LOGFILE ]; then
g_logread="tac $LOGFILE"
else
fatal_error "LOGFILE ($LOGFILE) does not exist! - ..."
fi
fi
So, on OpenWRT, if you just leave LOGFILE undefined, the correct thing
should happen.
-Tom
--
Tom Eastep \ When I die, I want to go like my Grandfather who
Shoreline, \ died peacefully in his sleep. Not screaming like
Washington, USA \ all of the passengers in his car
http://shorewall.net \________________________________________________
------------------------------------------------------------------------------
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users