initscripts: new package

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>
This commit is contained in:
Maxime Hadjinlian
2015-07-13 23:00:08 +02:00
committed by Thomas Petazzoni
parent 4d1a9d8cd8
commit 89d39fc7a3
11 changed files with 29 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
################################################################################
#
# 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))