aboutsummaryrefslogtreecommitdiff
path: root/sh/init.sh.BSD.in
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-02-11 22:13:28 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-02-16 19:56:47 -0600
commitcd4becf6cd9611defda298f984efa01c441723d3 (patch)
tree7c478112cbc3d80ef806bb4f1ed65990b31840bf /sh/init.sh.BSD.in
parent746bf5f78376e2e7b3e8bc843dfa1e4a3fa6a8e4 (diff)
make init.sh and init-early.sh honor SYSCONFDIR
Fixes hardcoded paths that break when built with SYSCONFDIR set to anything other than /etc/ Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'sh/init.sh.BSD.in')
-rw-r--r--sh/init.sh.BSD.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/init.sh.BSD.in b/sh/init.sh.BSD.in
index 25b46a4d..0bd3e9bc 100644
--- a/sh/init.sh.BSD.in
+++ b/sh/init.sh.BSD.in
@@ -22,7 +22,7 @@ mount_svcdir()
}
. "$RC_LIBEXECDIR"/sh/functions.sh
-[ -r /etc/rc.conf ] && . /etc/rc.conf
+[ -r "@SYSCONFDIR@/rc.conf" ] && . "@SYSCONFDIR@/rc.conf"
# Disable devd until we need it
if [ -z "$RC_SYS" -a "$RC_UNAME" = "FreeBSD" ]; then