svn commit: r270676 - head/etc

Baptiste Daroussin bapt at FreeBSD.org
Tue Aug 26 22:33:34 UTC 2014


Author: bapt
Date: Tue Aug 26 22:33:34 2014
New Revision: 270676
URL: http://svnweb.freebsd.org/changeset/base/270676

Log:
  Allow to configure services from ${LOCALBASE}/etc/rc.conf.d
  
  Reviewed by:	bdrewery
  MFC after:	1 week
  Relnotes:	yes

Modified:
  head/etc/rc.subr

Modified: head/etc/rc.subr
==============================================================================
--- head/etc/rc.subr	Tue Aug 26 22:20:02 2014	(r270675)
+++ head/etc/rc.subr	Tue Aug 26 22:33:34 2014	(r270676)
@@ -1301,6 +1301,10 @@ load_rc_config()
 			fi
 		done
 	fi
+	if [ -f ${LOCALBASE:-/usr/local}/etc/rc.conf.d/"$_name" ]; then
+		debug "Sourcing ${LOCALBASE:-/usr/local}/etc/rc.conf.d/${_name}"
+		. ${LOCALBASE:-/usr/local}/etc/rc.conf.d/"$_name"
+	fi
 
 	# Set defaults if defined.
 	for _var in $rcvar; do


More information about the svn-src-head mailing list