diff options
author | 2011-05-19 09:50:50 +0000 | |
---|---|---|
committer | 2011-05-19 09:50:50 +0000 | |
commit | 64a67711fc91a9d538a225e49e83e00bdb4b9315 (patch) | |
tree | 97f4cf878d5af22d65d2826ea6e708192dbbebe4 | |
parent | Add a few missing checks of return values of memory allocations. (diff) | |
download | wireguard-openbsd-64a67711fc91a9d538a225e49e83e00bdb4b9315.tar.xz wireguard-openbsd-64a67711fc91a9d538a225e49e83e00bdb4b9315.zip |
Setting RC_DEBUG is enough, it does not need to be explicitely set to
"1".
hint from MERIGHI Marcus
ok robert@
-rw-r--r-- | etc/rc.d/rc.subr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr index 373ce99fa73..8f255cea0f5 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -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. @@ -24,7 +24,7 @@ rc_stop() { } rc_do() { - if [ X"${RC_DEBUG}" = X"1" ]; then + if [ -n "${RC_DEBUG}" ]; then echo "doing $@" && "$@" else "$@" >/dev/null 2>&1 |