On Wed, Aug 27, 2014 at 01:48:00PM +0900, Hiroki Sato wrote: > Baptiste Daroussin <b...@freebsd.org> wrote > in <201408262233.s7qmxyfd056...@svn.freebsd.org>: > > ba> Author: bapt > ba> Date: Tue Aug 26 22:33:34 2014 > ba> New Revision: 270676 > ba> URL: http://svnweb.freebsd.org/changeset/base/270676 > ba> > ba> Log: > ba> Allow to configure services from ${LOCALBASE}/etc/rc.conf.d > ba> > ba> Reviewed by: bdrewery > ba> MFC after: 1 week > ba> Relnotes: yes > ba> > ba> Modified: > ba> head/etc/rc.subr > ba> > ba> Modified: head/etc/rc.subr > ba> > ============================================================================== > ba> --- head/etc/rc.subr Tue Aug 26 22:20:02 2014 (r270675) > ba> +++ head/etc/rc.subr Tue Aug 26 22:33:34 2014 (r270676) > ba> @@ -1301,6 +1301,10 @@ load_rc_config() > ba> fi > ba> done > ba> fi > ba> + if [ -f ${LOCALBASE:-/usr/local}/etc/rc.conf.d/"$_name" ]; then > ba> + debug "Sourcing ${LOCALBASE:-/usr/local}/etc/rc.conf.d/${_name}" > ba> + . ${LOCALBASE:-/usr/local}/etc/rc.conf.d/"$_name" > ba> + fi > > This should hornor ${local_startup} instead of ${LOCALBASE} since it > is not used in rc(8), and should be compatible with DES's commit in > r270392. > > How about the attached patch? >
I do like it better than mine thank you regards, Bapt
pgpjNH_MUGU4T.pgp
Description: PGP signature