Author: imp Date: Thu Dec 1 04:35:41 2016 New Revision: 309350 URL: https://svnweb.freebsd.org/changeset/base/309350
Log: If the kenv variable rc_debug is set, turn on rc_debug. Modified: head/etc/rc.subr Modified: head/etc/rc.subr ============================================================================== --- head/etc/rc.subr Thu Dec 1 04:35:38 2016 (r309349) +++ head/etc/rc.subr Thu Dec 1 04:35:41 2016 (r309350) @@ -2119,6 +2119,12 @@ _echoonce() esac } +# If the loader env variable rc.debug is set, turn on debugging. rc.conf will +# still override this, but /etc/defaults/rc.conf.a +if kenv -q rc.debug > /dev/null ; then + rc_debug=YES +fi + fi # [ -z "${_rc_subr_loaded}" ] _rc_subr_loaded=: _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"