diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2014-08-24 07:55:21 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2014-08-24 07:55:21 +0000 |
commit | 24414b6863654281af04eb9fd5f8427137403fd9 (patch) | |
tree | 3f7f65434144246cacc02574e519cc439932b8b4 | |
parent | 7465959d98b67972e76155119ca990356313b1f5 (diff) |
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@
-rw-r--r-- | etc/rc.d/rc.subr | 6 |
1 files changed, 2 insertions, 4 deletions
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 <ajacoutot@openbsd.org> # Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -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 } |