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>
This commit is contained in:
Maxime Hadjinlian 2014-02-04 11:06:05 +01:00 committed by Thomas Petazzoni
parent f70d350008
commit 5c06c05a4a
2 changed files with 4 additions and 4 deletions

View File

@ -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))