Update show_proc()

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1651 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2004-09-26 20:13:56 +00:00
parent 789e3fe757
commit 1c8880d839

View File

@ -618,9 +618,12 @@ show_reset() {
echo "Counters reset $(cat $STATEDIR/restarted)" && \ echo "Counters reset $(cat $STATEDIR/restarted)" && \
echo echo
} }
#
show_proc() { # Display's the passed file name followed by "=" and the file's contents.
echo " $1 = $(cat $1)" #
show_proc() # $1 = name of a file
{
[ -f $1 ] && echo " $1 = $(cat $1)"
} }
# #