aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-26 04:48:39 +0000
committerRoy Marples <roy@marples.name>2008-03-26 04:48:39 +0000
commit4f4b74e110cf124e6d992a48e5b499bced53bd46 (patch)
treeb6e13a77f19afecfaa79624eb798f6722b8a451b
parentf06e186d435142779c8d743b63e250e577580dca (diff)
Check the right dir for installed scripts.
-rw-r--r--runlevels/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/runlevels/Makefile b/runlevels/Makefile
index b5f7aa42..4a7ba5fc 100644
--- a/runlevels/Makefile
+++ b/runlevels/Makefile
@@ -19,7 +19,7 @@ install:
${INSTALL} -d ${BOOTDIR} || exit $$?; \
for x in ${BOOT}; do \
if test -n "${PREFIX}"; then \
- grep -q "keyword .*noprefix" ${PREFIX}/etc/init.d/"$$x" && continue; \
+ grep -q "keyword .*noprefix" ${SYSCONFDIR}/init.d/"$$x" && continue; \
fi; \
ln -snf ${PREFIX}/etc/init.d/"$$x" ${BOOTDIR}/"$$x" || exit $$?; \
done \
@@ -28,7 +28,7 @@ install:
${INSTALL} -d ${DEFAULTDIR} || exit $$?; \
for x in ${DEFAULT}; do \
if test -n "${PREFIX}"; then \
- grep -q "keyword .*noprefix" ${PREFIX}/etc/init.d/"$$x" && continue; \
+ grep -q "keyword .*noprefix" ${SYSCONFDIR}/init.d/"$$x" && continue; \
fi; \
ln -snf ${PREFIX}/etc/init.d/"$$x" ${DEFAULTDIR}/"$$x" || exit $$?; done \
fi