Allow to configure services from ${LOCALBASE}/etc/rc.conf.d

Reviewed by:	bdrewery
MFC after:	1 week
Relnotes:	yes
This commit is contained in:
Baptiste Daroussin 2014-08-26 22:33:34 +00:00
parent 24ed0a5759
commit 0dba3159e1

@ -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