From 9a52a44a05c9b66e4c39823101b259ea7e28cc19 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 17 Dec 2020 14:54:38 -0800 Subject: busybox: Install /etc/default/rcS when used as init system This helps in using sysvinit scripts with busybox init system as well (From OE-Core rev: 991394be9e695f9ddb5e2fca167c06f7a56a7449) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/recipes-core/busybox/busybox.inc | 1 + meta/recipes-core/busybox/busybox_1.32.0.bb | 1 + meta/recipes-core/busybox/files/rcS.default | 1 + 3 files changed, 3 insertions(+) create mode 100644 meta/recipes-core/busybox/files/rcS.default (limited to 'meta/recipes-core/busybox') diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index e0522be729..c3a97261d5 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc @@ -312,6 +312,7 @@ do_install () { if grep -q "CONFIG_INIT=y" ${B}/.config; then install -D -m 0755 ${WORKDIR}/rcS ${D}${sysconfdir}/init.d/rcS install -D -m 0755 ${WORKDIR}/rcK ${D}${sysconfdir}/init.d/rcK + install -D -m 0755 ${WORKDIR}/rcS.default ${D}${sysconfdir}/default/rcS fi if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then diff --git a/meta/recipes-core/busybox/busybox_1.32.0.bb b/meta/recipes-core/busybox/busybox_1.32.0.bb index 8e23b0d4a2..3a669444dd 100644 --- a/meta/recipes-core/busybox/busybox_1.32.0.bb +++ b/meta/recipes-core/busybox/busybox_1.32.0.bb @@ -33,6 +33,7 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://getopts.cfg \ file://resize.cfg \ ${@["", "file://init.cfg"][(d.getVar('VIRTUAL-RUNTIME_init_manager') == 'busybox')]} \ + ${@["", "file://rcS.default"][(d.getVar('VIRTUAL-RUNTIME_init_manager') == 'busybox')]} \ ${@["", "file://mdev.cfg"][(d.getVar('VIRTUAL-RUNTIME_dev_manager') == 'busybox-mdev')]} \ file://syslog.cfg \ file://unicode.cfg \ diff --git a/meta/recipes-core/busybox/files/rcS.default b/meta/recipes-core/busybox/files/rcS.default new file mode 100644 index 0000000000..262cad7d2a --- /dev/null +++ b/meta/recipes-core/busybox/files/rcS.default @@ -0,0 +1 @@ +# SULOGIN = "yes" -- cgit v1.2.3-54-g00ecf