'version' command displays version of shorewall-shell and shorewall-perl

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6397 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-17 22:28:29 +00:00
parent 2c6571789c
commit 022a1d3dbb

View File

@ -1551,6 +1551,12 @@ case "$COMMAND" in
;;
version)
echo $version
if [ -f /usr/share/shorewall-shell/version ]; then
echo "Shorewall-shell $(cat /usr/share/shorewall-shell/version)"
fi
if [ -f /usr/share/shorewall-perl/version ]; then
echo "Shorewall-perl $(cat /usr/share/shorewall-perl/version)"
fi
;;
try)
get_config