aboutsummaryrefslogtreecommitdiff
path: root/init.d.BSD/rc-enabled.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d.BSD/rc-enabled.in')
-rw-r--r--init.d.BSD/rc-enabled.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/init.d.BSD/rc-enabled.in b/init.d.BSD/rc-enabled.in
index ab21b4ae..9801203b 100644
--- a/init.d.BSD/rc-enabled.in
+++ b/init.d.BSD/rc-enabled.in
@@ -14,7 +14,7 @@ start()
{
ebegin "Starting local rc services"
local svc= enabled= retval=0 service=
- for svc in $(rcorder /etc/rc.d/* /usr/local/etc/rc.d/* 2>/dev/null); do
+ for svc in $(rcorder /etc/rc.d/* @PKG_PREFIX@/etc/rc.d/* 2>/dev/null); do
[ -x "$svc" ] || continue
service=${svc##*/}
@@ -24,8 +24,9 @@ start()
done
# If we have an init script for this service, continue
- [ -x /etc/init.d/"${service}" ] && continue
- [ -x /usr/local/etc/init.d/"${service}" ] && continue
+ [ -x @SYSCONFDIR@/init.d/"${service}" ] && continue
+ [ -x @PKG_PREFIX@/@SYSCONFDIR@/init.d/"${service}" ] && continue
+ [ -x @LOCAL_PREFIX@/@SYSCONFDIR@/init.d/"${service}" ] && continue
# Ensure that the users rc.conf will start us - ignore the defaults
eval enabled=\$${svc##*/}_enable