Display compiler version in the status and 'version -a' commands.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-09-30 15:59:42 -07:00
parent 5b515f007b
commit 9c30105fff

View File

@ -679,6 +679,11 @@ version_command() {
echo "$product: $(cat ${SHAREDIR}/$product/version)"
fi
done
if [ -f $g_firewall ]; then
echo $g_echo_n "$g_firewall was compiled by Shorewall version "
$g_firewall version
fi
else
echo $SHOREWALL_VERSION
fi
@ -2899,7 +2904,15 @@ show_status() {
else
state=Unknown
fi
[ $VERBOSITY -ge 1 ] && echo "State:$state"
if [ $VERBOSITY -ge 1 ]; then
echo "State:$state"
if [ -f $g_firewall ]; then
echo $g_echo_n "$g_firewall was compiled by Shorewall version "
$g_firewall version
fi
fi
}
status_command() {