From 1c8880d8396d5a095702911ef08e5590ec274069 Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 26 Sep 2004 20:13:56 +0000 Subject: [PATCH] Update show_proc() git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1651 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall2/shorewall | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Shorewall2/shorewall b/Shorewall2/shorewall index 1d09178e7..78a715473 100755 --- a/Shorewall2/shorewall +++ b/Shorewall2/shorewall @@ -618,9 +618,12 @@ show_reset() { echo "Counters reset $(cat $STATEDIR/restarted)" && \ echo } - -show_proc() { - echo " $1 = $(cat $1)" +# +# Display's the passed file name followed by "=" and the file's contents. +# +show_proc() # $1 = name of a file +{ + [ -f $1 ] && echo " $1 = $(cat $1)" } #