diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-12-09 12:38:10 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-12-09 12:38:10 -0600 |
commit | cc9c23c8484ea7d07b1f8e54bcab46cc31ec727d (patch) | |
tree | 1891d9d7fa1ae194b4a9e597eaafc59386e15e2d /sh/gendepends.sh.in | |
parent | 935252b1152b4086ccbe76ace21e677d7ac8a357 (diff) |
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.
Diffstat (limited to 'sh/gendepends.sh.in')
-rw-r--r-- | sh/gendepends.sh.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sh/gendepends.sh.in b/sh/gendepends.sh.in index 2ab798d9..79a4bfff 100644 --- a/sh/gendepends.sh.in +++ b/sh/gendepends.sh.in @@ -96,6 +96,11 @@ do fi [ -e @SYSCONFDIR@/rc.conf ] && . @SYSCONFDIR@/rc.conf + if [ -d "@SYSCONFDIR@/rc.conf.d" ]; then + for _f in "@SYSCONFDIR@"/rc.conf.d/*.conf; do + [ -e "$_f" ] && . "$_f" + done + fi if . "$_dir/$RC_SVCNAME"; then echo "$RC_SVCNAME" >&3 |