Browse Source

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@
OPENBSD_5_7
ajacoutot 10 years ago
parent
commit
f2e3ccb3b3
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      src/etc/rc.d/rc.subr

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

@ -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, 2014 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> # Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@ -144,9 +144,7 @@ _rc_parse_conf() {
_rc_do _rc_quirks _rc_do _rc_quirks
if [ -n "${_RC_DEBUG}" ]; then 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 fi
} }


Loading…
Cancel
Save