forked from extern/shorewall_code
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
|
||||
echo "$PRODUCT $version Dump at $HOSTNAME - $(date)"
|
||||
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
|
||||
host=$(echo $HOSTNAME | sed 's/\..*$//')
|
||||
$IPTABLES -L $IPT_OPTIONS
|
||||
@ -980,6 +991,7 @@ allow_command() {
|
||||
exit 2
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# 'logwatch' command executor
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user