Browse Source

Setting RC_DEBUG is enough, it does not need to be explicitely set to

"1".
hint from MERIGHI Marcus
ok robert@
OPENBSD_5_0
ajacoutot 13 years ago
parent
commit
9105b7a552
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc.d/rc.subr

+ 2
- 2
src/etc/rc.d/rc.subr View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.subr,v 1.35 2011/04/09 15:39:22 schwarze Exp $
# $OpenBSD: rc.subr,v 1.36 2011/05/19 09:50:50 ajacoutot Exp $
# Default functions and variables used by rc.d(8) scripts. # Default functions and variables used by rc.d(8) scripts.
@ -24,7 +24,7 @@ rc_stop() {
} }
rc_do() { rc_do() {
if [ X"${RC_DEBUG}" = X"1" ]; then
if [ -n "${RC_DEBUG}" ]; then
echo "doing $@" && "$@" echo "doing $@" && "$@"
else else
"$@" >/dev/null 2>&1 "$@" >/dev/null 2>&1


Loading…
Cancel
Save