From 2f01fc9a3edf1707fe7d136e2057f0c7188734be Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 24 Jun 2009 15:41:15 -0700 Subject: [PATCH] Fix 'show dynamic' -- take 2 --- Shorewall/lib.cli | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Shorewall/lib.cli b/Shorewall/lib.cli index fdde1ee4a..1b8dad900 100644 --- a/Shorewall/lib.cli +++ b/Shorewall/lib.cli @@ -553,6 +553,7 @@ show_command() { if [ $# -gt 0 ]; then for chain in $*; do $IPTABLES -t $table -L $chain $IPT_OPTIONS + echo done else $IPTABLES -t $table -L $IPT_OPTIONS @@ -625,7 +626,7 @@ show_command() { [ -n "$table_given" ] || for chain in $*; do if ! qt $IPTABLES -t $table -L $chain $IPT_OPTIONS; then - echo "usage $(basename $0) show [ -x ] [ -m ] [-f] [ -t {filter|mangle|nat} ] [ {chain [ [ ... ]|actions|capabilities|classifiers|config|connections|filters|ip|log|macros|mangle|nat|routing|tc|zones} ] " >&2 + echo "usage $(basename $0) show [ -x ] [ -m ] [-f] [ -t {filter|mangle|nat} ] [ {chain [ [ ... ]|actions|capabilities|classifiers|config|connections|dynamic |filters|ip|log|macros|mangle|nat|routing|tc|zones} ] " >&2 exit 1 fi done @@ -635,6 +636,7 @@ show_command() { show_reset for chain in $*; do $IPTABLES -t $table -L $chain $IPT_OPTIONS + echo done else echo "$PRODUCT $version $table Table at $HOSTNAME - $(date)"