summaryrefslogtreecommitdiff
path: root/etc/rc.d/rc.subr
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2011-05-19 09:50:51 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2011-05-19 09:50:51 +0000
commit249c7aa6af987d0dfd674cfe30659d3a4668393b (patch)
tree63d89b8e49ab29ea453a73fa98a4e6e0c06c79f7 /etc/rc.d/rc.subr
parent89905ade48abcd2e1fdd20333f8952db3333511a (diff)
Setting RC_DEBUG is enough, it does not need to be explicitely set to
"1". hint from MERIGHI Marcus ok robert@
Diffstat (limited to 'etc/rc.d/rc.subr')
-rw-r--r--etc/rc.d/rc.subr4
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