mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +01:00
Display compiler version in the status and 'version -a' commands.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
5b515f007b
commit
9c30105fff
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user