From: Felix Fietkau Date: Fri, 11 Dec 2009 04:34:16 +0000 (+0000) Subject: shorewall-lite: default shorewall-lite to not having any logfile, X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=aa60d7414d64225bdce4fd5bb79f21977957b3f5 shorewall-lite: default shorewall-lite to not having any logfile, which normally defaults to /var/log/messages. Signed-off-by: Brian J. Murrell SVN-Revision: 18742 --- diff --git a/net/shorewall-lite/patches/120-LOGFILE.patch b/net/shorewall-lite/patches/120-LOGFILE.patch new file mode 100644 index 0000000000..889a760638 --- /dev/null +++ b/net/shorewall-lite/patches/120-LOGFILE.patch @@ -0,0 +1,20 @@ +--- a/shorewall-lite 2009-12-05 22:35:20.000000000 -0500 ++++ b/shorewall-lite 2009-12-05 22:35:27.000000000 -0500 +@@ -95,7 +95,7 @@ + + if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then + LOGREAD="logread | tac" +- elif [ -f $LOGFILE ]; then ++ elif [ -r $LOGFILE ]; then + LOGREAD="tac $LOGFILE" + else + echo "LOGFILE ($LOGFILE) does not exist!" >&2 +--- a/shorewall-lite.conf 2009-12-05 22:37:43.000000000 -0500 ++++ b/shorewall-lite.conf 2009-12-05 22:37:51.000000000 -0500 +@@ -46,4 +46,6 @@ + + RESTOREFILE= + ++LOGFILE=/dev/null ++ + #LAST LINE -- DO NOT REMOVE