From cc9c23c8484ea7d07b1f8e54bcab46cc31ec727d Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 9 Dec 2015 12:38:10 -0600 Subject: Complete support for rc.conf.d - gendepends.sh needs to read this directory to allow dependencies to be overridden - init.sh for Linux and Bsd need to read it to allow config settings they use to be overridden. --- sh/init.sh.BSD.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sh/init.sh.BSD.in') diff --git a/sh/init.sh.BSD.in b/sh/init.sh.BSD.in index 2a53dcd8..5912a95a 100644 --- a/sh/init.sh.BSD.in +++ b/sh/init.sh.BSD.in @@ -23,6 +23,11 @@ mount_svcdir() . "$RC_LIBEXECDIR"/sh/functions.sh [ -r "@SYSCONFDIR@/rc.conf" ] && . "@SYSCONFDIR@/rc.conf" +if [ -d "@SYSCONFDIR@/rc.conf.d" ]; then + for _f in "@SYSCONFDIR@"/rc.conf.d/*.conf; do + [ -r "$_f" ] && . "$_f" + done +fi # Disable devd until we need it if [ -z "$RC_SYS" -a "$RC_UNAME" = "FreeBSD" ]; then -- cgit v1.2.3