mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-24 03:31:24 +02:00
Streamline the output of the status comment
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
db1b25b4d7
commit
8f36c080d0
@ -2935,11 +2935,11 @@ show_status() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $VERBOSITY -ge 1 ]; then
|
if [ $VERBOSITY -ge 1 ]; then
|
||||||
echo "State:$state"
|
|
||||||
if [ -f $g_firewall ]; then
|
if [ -f $g_firewall ]; then
|
||||||
echo $g_echo_n "$g_firewall was compiled by Shorewall version "
|
state="$state ($g_firewall compiled by Shorewall version $($g_firewall version))"
|
||||||
$g_firewall version
|
|
||||||
fi
|
fi
|
||||||
|
echo "State:$state"
|
||||||
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -2947,7 +2947,6 @@ show_status() {
|
|||||||
status_command() {
|
status_command() {
|
||||||
[ $VERBOSITY -ge 1 ] && echo "${g_product}-$SHOREWALL_VERSION Status at $g_hostname - $(date)" && echo
|
[ $VERBOSITY -ge 1 ] && echo "${g_product}-$SHOREWALL_VERSION Status at $g_hostname - $(date)" && echo
|
||||||
show_status
|
show_status
|
||||||
[ $VERBOSITY -ge 1 ] && echo
|
|
||||||
exit $status
|
exit $status
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user