aboutsummaryrefslogtreecommitdiff
path: root/dns/dhid/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dns/dhid/Makefile')
-rw-r--r--dns/dhid/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/dns/dhid/Makefile b/dns/dhid/Makefile
index 622c66866d7b..e01835a2e849 100644
--- a/dns/dhid/Makefile
+++ b/dns/dhid/Makefile
@@ -26,9 +26,7 @@ do-install:
post-install:
@if [ ! -f ${PREFIX}/etc/rc.d/dhid.sh ]; then \
${ECHO} "===> Installing ${PREFIX}/etc/rc.d/dhid.sh startup file."; \
- ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/dhid.sh; \
- ${ECHO} "[ -x \"${PREFIX}/sbin/dhid\" -a -f \"${PREFIX}/etc/dhid.conf\" ] && ${PREFIX}/sbin/dhid > /dev/null && ${ECHO} -n ' dhid'" >> ${PREFIX}/etc/rc.d/dhid.sh; \
- ${CHMOD} 751 ${PREFIX}/etc/rc.d/dhid.sh; \
+ ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/dhid.sh ${PREFIX}/etc/rc.d/dhid.sh; \
fi;
@${ECHO} "--------------------------------------------------------------------------"
@${ECHO} "Before dhid can run, you will need to register with a DHIS provider."