aboutsummaryrefslogtreecommitdiff
path: root/init.d/rc-enabled.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-25 18:33:45 +0000
committerRoy Marples <roy@marples.name>2008-03-25 18:33:45 +0000
commit5866d829bb4c3352056e2c6775efe71f299ee120 (patch)
tree81e25c55594cdbf114c4d22087ea1b7c27571793 /init.d/rc-enabled.in
parent068c90c82b07343b5f54fe5ac836fe3efc66f51f (diff)
Try and fix more prefix stuff.
Diffstat (limited to 'init.d/rc-enabled.in')
-rw-r--r--init.d/rc-enabled.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/init.d/rc-enabled.in b/init.d/rc-enabled.in
index 9801203b..f222e6ad 100644
--- a/init.d/rc-enabled.in
+++ b/init.d/rc-enabled.in
@@ -24,9 +24,7 @@ start()
done
# If we have an init script for this service, continue
- [ -x @SYSCONFDIR@/init.d/"${service}" ] && continue
- [ -x @PKG_PREFIX@/@SYSCONFDIR@/init.d/"${service}" ] && continue
- [ -x @LOCAL_PREFIX@/@SYSCONFDIR@/init.d/"${service}" ] && continue
+ rc-service --list | grep -q "${service}" && continue
# Ensure that the users rc.conf will start us - ignore the defaults
eval enabled=\$${svc##*/}_enable