Make 'Lite' output more distinct

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4073 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-06-12 16:11:32 +00:00
parent 82e279209f
commit 8bb9560eae

View File

@ -685,27 +685,27 @@ show_command() {
case "$1" in case "$1" in
connections) connections)
[ $# -gt 1 ] && usage 1 [ $# -gt 1 ] && usage 1
echo "Shorewall-$version Connections at $HOSTNAME - $(date)" echo "Shorewall Lite $version Connections at $HOSTNAME - $(date)"
echo echo
cat /proc/net/ip_conntrack cat /proc/net/ip_conntrack
;; ;;
nat) nat)
[ $# -gt 1 ] && usage 1 [ $# -gt 1 ] && usage 1
echo "Shorewall-$version NAT Table at $HOSTNAME - $(date)" echo "Shorewall Lite $version NAT Table at $HOSTNAME - $(date)"
echo echo
show_reset show_reset
$IPTABLES -t nat -L $IPT_OPTIONS $IPTABLES -t nat -L $IPT_OPTIONS
;; ;;
tos|mangle) tos|mangle)
[ $# -gt 1 ] && usage 1 [ $# -gt 1 ] && usage 1
echo "Shorewall-$version Mangle Table at $HOSTNAME - $(date)" echo "Shorewall Lite $version Mangle Table at $HOSTNAME - $(date)"
echo echo
show_reset show_reset
$IPTABLES -t mangle -L $IPT_OPTIONS $IPTABLES -t mangle -L $IPT_OPTIONS
;; ;;
log) log)
[ $# -gt 1 ] && usage 1 [ $# -gt 1 ] && usage 1
echo "Shorewall-$version Log at $HOSTNAME - $(date)" echo "Shorewall Lite $version Log at $HOSTNAME - $(date)"
echo echo
show_reset show_reset
host=$(echo $HOSTNAME | sed 's/\..*$//') host=$(echo $HOSTNAME | sed 's/\..*$//')
@ -713,20 +713,20 @@ show_command() {
;; ;;
tc) tc)
[ $# -gt 1 ] && usage 1 [ $# -gt 1 ] && usage 1
echo "Shorewall-$version Traffic Control at $HOSTNAME - $(date)" echo "Shorewall Lite $version Traffic Control at $HOSTNAME - $(date)"
echo echo
show_tc show_tc
;; ;;
classifiers) classifiers)
[ $# -gt 1 ] && usage 1 [ $# -gt 1 ] && usage 1
echo "Shorewall-$version Clasifiers at $HOSTNAME - $(date)" echo "Shorewall Lite $version Clasifiers at $HOSTNAME - $(date)"
echo echo
show_classifiers show_classifiers
;; ;;
zones) zones)
[ $# -gt 1 ] && usage 1 [ $# -gt 1 ] && usage 1
if [ -f ${VARDIR}/zones ]; then if [ -f ${VARDIR}/zones ]; then
echo "Shorewall-$version Zones at $HOSTNAME - $(date)" echo "Shorewall Lite $version Zones at $HOSTNAME - $(date)"
echo echo
while read zone type hosts; do while read zone type hosts; do
echo "$zone ($type)" echo "$zone ($type)"
@ -747,7 +747,7 @@ show_command() {
report_capabilities report_capabilities
;; ;;
*) *)
echo "Shorewall-$version $([ $# -gt 0 ] && echo Chains || echo Chain) $* at $HOSTNAME - $(date)" echo "Shorewall Lite $version $([ $# -gt 0 ] && echo Chains || echo Chain) $* at $HOSTNAME - $(date)"
echo echo
show_reset show_reset
if [ $# -gt 0 ]; then if [ $# -gt 0 ]; then
@ -798,7 +798,7 @@ dump_command() {
[ -n "$debugging" ] && set -x [ -n "$debugging" ] && set -x
[ $# -eq 0 ] || usage 1 [ $# -eq 0 ] || usage 1
clear_term clear_term
echo "Shorewall-$version Dump at $HOSTNAME - $(date)" echo "Shorewall Lite $version Dump at $HOSTNAME - $(date)"
echo echo
show_reset show_reset
host=$(echo $HOSTNAME | sed 's/\..*$//') host=$(echo $HOSTNAME | sed 's/\..*$//')
@ -1224,7 +1224,7 @@ else
exit 1 exit 1
fi fi
banner="Shorewall-$version Status at $HOSTNAME -" banner="Shorewall Lite $version Status at $HOSTNAME -"
case $(echo -e) in case $(echo -e) in
-e*) -e*)
@ -1270,7 +1270,7 @@ case "$COMMAND" in
;; ;;
status) status)
[ $# -eq 1 ] || usage 1 [ $# -eq 1 ] || usage 1
echo "Shorewall-$version Status at $HOSTNAME - $(date)" echo "Shorewall Lite $version Status at $HOSTNAME - $(date)"
echo echo
if shorewall_is_started ; then if shorewall_is_started ; then
echo "Shorewall is running" echo "Shorewall is running"
@ -1302,7 +1302,7 @@ case "$COMMAND" in
[ -n "$debugging" ] && set -x [ -n "$debugging" ] && set -x
[ $# -eq 1 ] || usage 1 [ $# -eq 1 ] || usage 1
clear_term clear_term
echo "Shorewall-$version Hits at $HOSTNAME - $(date)" echo "Shorewall Lite $version Hits at $HOSTNAME - $(date)"
echo echo
timeout=30 timeout=30