summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>2014-02-04 10:06:05 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-03-02 15:30:48 (GMT)
commit5c06c05a4a36190292ee69e88d889a59b0b0d08d (patch)
treef25521c3ed21138acb5668825e19a6fcc1ee4fd0
parentf70d35000835303e32b801cf3456d2a8ef7cca5b (diff)
downloadbuildroot-5c06c05a4a36190292ee69e88d889a59b0b0d08d.tar.gz
buildroot-5c06c05a4a36190292ee69e88d889a59b0b0d08d.tar.bz2
dmraid: rename init script and use FOO_INSTALL_INIT_SYSV
This commit fixes the init script to use the correct FOO_INSTALL_INIT_SYSV hook. [Thomas: slightly reword commit log.] Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/dmraid/S20dmraid (renamed from package/dmraid/dmraid.init)0
-rw-r--r--package/dmraid/dmraid.mk8
2 files changed, 4 insertions, 4 deletions
diff --git a/package/dmraid/dmraid.init b/package/dmraid/S20dmraid
index fd2ad9e..fd2ad9e 100644
--- a/package/dmraid/dmraid.init
+++ b/package/dmraid/S20dmraid
diff --git a/package/dmraid/dmraid.mk b/package/dmraid/dmraid.mk
index 089e33a..412c903 100644
--- a/package/dmraid/dmraid.mk
+++ b/package/dmraid/dmraid.mk
@@ -15,10 +15,10 @@ DMRAID_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
DMRAID_DEPENDENCIES = lvm2
-define DMRAID_INSTALL_INITSCRIPT
- $(INSTALL) -m 0755 package/dmraid/dmraid.init $(TARGET_DIR)/etc/init.d/S20dmraid
+define DMRAID_INSTALL_INIT_SYSV
+ [ -f $(TARGET_DIR)/etc/init.d/S20dmraid ] || \
+ $(INSTALL) -D -m 0755 package/dmraid/S20dmraid \
+ $(TARGET_DIR)/etc/init.d/S20dmraid
endef
-DMRAID_POST_INSTALL_TARGET_HOOKS += DMRAID_INSTALL_INITSCRIPT
-
$(eval $(autotools-package))