Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Dec 2016 04:35:41 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r309350 - head/etc
Message-ID:  <201612010435.uB14Zfgu020006@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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=:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612010435.uB14Zfgu020006>