Check the right dir for installed scripts.
This commit is contained in:
parent
f06e186d43
commit
4f4b74e110
@ -19,7 +19,7 @@ install:
|
|||||||
${INSTALL} -d ${BOOTDIR} || exit $$?; \
|
${INSTALL} -d ${BOOTDIR} || exit $$?; \
|
||||||
for x in ${BOOT}; do \
|
for x in ${BOOT}; do \
|
||||||
if test -n "${PREFIX}"; then \
|
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; \
|
fi; \
|
||||||
ln -snf ${PREFIX}/etc/init.d/"$$x" ${BOOTDIR}/"$$x" || exit $$?; \
|
ln -snf ${PREFIX}/etc/init.d/"$$x" ${BOOTDIR}/"$$x" || exit $$?; \
|
||||||
done \
|
done \
|
||||||
@ -28,7 +28,7 @@ install:
|
|||||||
${INSTALL} -d ${DEFAULTDIR} || exit $$?; \
|
${INSTALL} -d ${DEFAULTDIR} || exit $$?; \
|
||||||
for x in ${DEFAULT}; do \
|
for x in ${DEFAULT}; do \
|
||||||
if test -n "${PREFIX}"; then \
|
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; \
|
fi; \
|
||||||
ln -snf ${PREFIX}/etc/init.d/"$$x" ${DEFAULTDIR}/"$$x" || exit $$?; done \
|
ln -snf ${PREFIX}/etc/init.d/"$$x" ${DEFAULTDIR}/"$$x" || exit $$?; done \
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user