aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'init.d')
-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