From ac1c9a2af8bea0a5b5604fdff26a70f363a64fc0 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sun, 30 Nov 2014 15:18:11 +0100 Subject: [PATCH] tftpd: use _INSTALL_INIT_SYSV mechanism Also make sure we use a full path for the destination of the $(INSTALL) command. [Peter: use install -m as noted by Yann] Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/tftpd/tftpd.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/tftpd/tftpd.mk b/package/tftpd/tftpd.mk index 816a25ec51..778d45fd85 100644 --- a/package/tftpd/tftpd.mk +++ b/package/tftpd/tftpd.mk @@ -21,7 +21,10 @@ endif define TFTPD_INSTALL_TARGET_CMDS $(INSTALL) -D $(@D)/tftp/tftp $(TARGET_DIR)/usr/bin/tftp $(INSTALL) -D $(@D)/tftpd/tftpd $(TARGET_DIR)/usr/sbin/tftpd - $(INSTALL) -D package/tftpd/S80tftpd-hpa $(TARGET_DIR)/etc/init.d/ +endef + +define TFTPD_INSTALL_INIT_SYSV + $(INSTALL) -D -m 0755 package/tftpd/S80tftpd-hpa $(TARGET_DIR)/etc/init.d/S80tftpd-hpa endef $(eval $(autotools-package)) -- 2.30.2