mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 13:33:28 +08:00
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:
parent
f70d350008
commit
5c06c05a4a
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user