89d39fc7a3
The folder init.d is currently installed by default since it's part of our skeleton. This patch creates a package out of it and make busybox/sysvinit depends on it. This way, if you chose another init, you don't end up with a useless init.d folder. [Thomas: - make the initscripts package selectable via a hidden bool - remove some unneeded changes in sysvinit.mk.] Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
16 lines
421 B
Makefile
16 lines
421 B
Makefile
################################################################################
|
|
#
|
|
# initscripts
|
|
#
|
|
################################################################################
|
|
|
|
# source included in buildroot
|
|
INITSCRIPTS_SOURCE =
|
|
|
|
define INITSCRIPTS_INSTALL_TARGET_CMDS
|
|
mkdir -p $(TARGET_DIR)/etc/init.d
|
|
$(INSTALL) -D -m 0755 package/initscripts/init.d/* $(TARGET_DIR)/etc/init.d/
|
|
endef
|
|
|
|
$(eval $(generic-package))
|