Bring forward BusyBox ash workaround

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4398 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-08-22 16:25:16 +00:00
parent 0a5565dc6c
commit 426641a572
2 changed files with 13 additions and 5 deletions

View File

@ -11,9 +11,15 @@ usage() {
initialize
#
# Start trace if first arg is "debug" or "trace"
# Start trace if first arg is "debug" or "trace" (the awkward code works around
# a bug in BusyBox ash on some distros).
#
[ $# -gt 1 ] && [ "$1" = "debug" -o "$1" = "trace" ] && { set -x ; shift ; }
if [ $# -gt 1 ]; then
if [ "$1" = "debug" ] || [ "$1" = "trace" ]; then
set -x
shift
fi
fi
finished=0

View File

@ -1567,9 +1567,11 @@ make_verbose() {
#
debugging=
if [ $# -gt 0 ] && [ "$1" = "debug" -o "$1" = "trace" ]; then
debugging=debug
shift
if [ $# -gt 0 ] ; then
if [ "$1" = "debug" ] || [ "$1" = "trace" ]; then
debugging=debug
shift
fi
fi
nolock=