forked from extern/shorewall_code
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:
parent
5924ab71b5
commit
0056150713
@ -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
|
||||
|
@ -208,6 +208,8 @@ get_config() {
|
||||
|
||||
export VERBOSE
|
||||
|
||||
[ -n "${HOSTNAME:=$(hostname)}" ]
|
||||
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user