From e1ec9b0c0b530172268363cdac42363fc0020fd9 Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 30 Jul 2004 00:35:34 +0000 Subject: [PATCH] Clean up logging and variable naming git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1512 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall2/firewall | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Shorewall2/firewall b/Shorewall2/firewall index 4403e0b88..7d1c6169c 100755 --- a/Shorewall2/firewall +++ b/Shorewall2/firewall @@ -3684,7 +3684,14 @@ process_rule() # $1 = target loglevel="${loglevel%:*}" expandv logtag fi - + + if [ $loglevel = none ]; then + loglevel= + logtag= + [ $target = LOG ] && return + fi + + loglevel=${loglevel%\!} fi # # Save the original target in 'logtarget' for logging rules