mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-19 17:28:35 +02:00
Add shell/perl version info to dump output
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6399 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
849cea93d2
commit
e1b85e8d51
@ -635,6 +635,17 @@ dump_command() {
|
|||||||
clear_term
|
clear_term
|
||||||
echo "$PRODUCT $version Dump at $HOSTNAME - $(date)"
|
echo "$PRODUCT $version Dump at $HOSTNAME - $(date)"
|
||||||
echo
|
echo
|
||||||
|
if [ -f /usr/share/shorewall-shell/version ]; then
|
||||||
|
echo " Shorewall-shell $(cat /usr/share/shorewall-shell/version)"
|
||||||
|
if [ -f /usr/share/shorewall-perl/version ]; then
|
||||||
|
echo " Shorewall-perl $(cat /usr/share/shorewall-perl/version)"
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
elif [ -f /usr/share/shorewall-perl/version ]; then
|
||||||
|
echo " Shorewall-perl $(cat /usr/share/shorewall-perl/version)"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
show_reset
|
show_reset
|
||||||
host=$(echo $HOSTNAME | sed 's/\..*$//')
|
host=$(echo $HOSTNAME | sed 's/\..*$//')
|
||||||
$IPTABLES -L $IPT_OPTIONS
|
$IPTABLES -L $IPT_OPTIONS
|
||||||
@ -980,6 +991,7 @@ allow_command() {
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# 'logwatch' command executor
|
# 'logwatch' command executor
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user