From: ajacoutot Date: Sun, 24 Aug 2014 07:55:20 +0000 (+0000) Subject: In debug mode (`-d'), only print the flags relevant to the rc.d(8) we are X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4376b7478850afac72fb7801f3970b264bdbf936;p=openbsd In debug mode (`-d'), only print the flags relevant to the rc.d(8) we are calling instead of all flags which makes it very difficult to see the information we actually need. ok schwarze@ robert@ --- diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr index 979b1e2b777..0cc69701b3b 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.82 2014/08/21 10:06:14 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.83 2014/08/24 07:55:20 ajacoutot Exp $ # # Copyright (c) 2010, 2011, 2014 Antoine Jacoutot # Copyright (c) 2010, 2011 Ingo Schwarze @@ -144,9 +144,7 @@ _rc_parse_conf() { _rc_do _rc_quirks if [ -n "${_RC_DEBUG}" ]; then - for _i in ${_conf}; do - printf "%18s\t>$(eval echo '$'${_i})<\n" ${_i} - done | sort -uk 1b + echo "${_name}_flags >$(eval echo \${${_name}_flags})<" fi }