More light-weight shell workarounds

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5026 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-11-30 21:28:31 +00:00
parent 5924ab71b5
commit 0056150713
2 changed files with 4 additions and 2 deletions

View File

@ -402,7 +402,7 @@ show_command() {
[ $# -eq 1 ] && usage 1
case $2 in
mangle|nat|filter)
mangle|nat|filter|raw)
table=$2
;;
*)
@ -562,7 +562,7 @@ show_command() {
esac
fi
echo "$PRODUCT $version $([ $# -gt 0 ] && echo Chains || echo Chain) $* at $HOSTNAME - $(date)"
echo "$PRODUCT $version $([ $# -gt 1 ] && echo "Chains " || [ $# -gt 0 ] && echo "Chain " || echo $table Table)$* at ${HOSTNAME:-$(hostname)} - $(date)"
echo
show_reset
if [ $# -gt 0 ]; then

View File

@ -208,6 +208,8 @@ get_config() {
export VERBOSE
[ -n "${HOSTNAME:=$(hostname)}" ]
}
#