svn commit: r309350 - head/etc
Warner Losh
imp at FreeBSD.org
Thu Dec 1 04:35:42 UTC 2016
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=:
More information about the svn-src-head
mailing list