mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-03 00:15:54 +02:00
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
|
[ $# -eq 1 ] && usage 1
|
||||||
|
|
||||||
case $2 in
|
case $2 in
|
||||||
mangle|nat|filter)
|
mangle|nat|filter|raw)
|
||||||
table=$2
|
table=$2
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -562,7 +562,7 @@ show_command() {
|
|||||||
esac
|
esac
|
||||||
fi
|
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
|
echo
|
||||||
show_reset
|
show_reset
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
|
@ -208,6 +208,8 @@ get_config() {
|
|||||||
|
|
||||||
export VERBOSE
|
export VERBOSE
|
||||||
|
|
||||||
|
[ -n "${HOSTNAME:=$(hostname)}" ]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user