From f89c78788f2b948d0ed6ca50075e0aa2083bcbd2 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 3 Dec 2011 12:41:05 -0800 Subject: [PATCH] Correct a couple of syntax errors in lib.cli Signed-off-by: Tom Eastep --- Shorewall/lib.cli | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shorewall/lib.cli b/Shorewall/lib.cli index 2a822de0e..064b1fcaf 100644 --- a/Shorewall/lib.cli +++ b/Shorewall/lib.cli @@ -81,6 +81,7 @@ iptablesbug() else echo " WARNING: You don't have 'awk' on this system so the output of the save command may be unusable" >&2 cat + fi else cat fi @@ -160,7 +161,7 @@ packet_log() # $1 = number of messages else $g_logread | grep 'IN=.* OUT=.*SRC=.*:.*DST=' | head -n$1 | tac | sed -r 's/ kernel://; s/\[.*\] //; s/0000:/:/g; s/:::+/::/g; s/:0+/:/g' | sed s/" $host $LOGFORMAT"/" "/ fi - elif [ $family -eq 4 ]; then + elif [ $g_family -eq 4 ]; then $g_logread | grep 'IN=.* OUT=.*SRC=.*\..*DST=' | head -n$1 | tac | sed 's/ kernel://; s/MAC=.* SRC=/SRC=/; s/\[.*\] '// | sed s/" $host $LOGFORMAT"/" "/ else $g_logread | grep 'IN=.* OUT=.*SRC=.*:.*DST=' | head -n$1 | tac | sed -r 's/ kernel://; s/MAC=.* SRC=/SRC=/; s/\[.*\] //; s/0000:/:/g; s/:::+/::/g; s/:0+/:/g' | sed s/" $host $LOGFORMAT"/" "/