summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-12-17 14:54:38 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-20 00:03:05 +0000
commit9a52a44a05c9b66e4c39823101b259ea7e28cc19 (patch)
tree7a972b39f05da7328ff5cfba44b5ce40134236a9 /meta/recipes-core
parenta8af9db08c57e828caa9d5893aa5b8fca44cdddf (diff)
downloadpoky-9a52a44a05c9b66e4c39823101b259ea7e28cc19.tar.gz
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 <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/busybox/busybox.inc1
-rw-r--r--meta/recipes-core/busybox/busybox_1.32.0.bb1
-rw-r--r--meta/recipes-core/busybox/files/rcS.default1
3 files changed, 3 insertions, 0 deletions
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 () {
312 if grep -q "CONFIG_INIT=y" ${B}/.config; then 312 if grep -q "CONFIG_INIT=y" ${B}/.config; then
313 install -D -m 0755 ${WORKDIR}/rcS ${D}${sysconfdir}/init.d/rcS 313 install -D -m 0755 ${WORKDIR}/rcS ${D}${sysconfdir}/init.d/rcS
314 install -D -m 0755 ${WORKDIR}/rcK ${D}${sysconfdir}/init.d/rcK 314 install -D -m 0755 ${WORKDIR}/rcK ${D}${sysconfdir}/init.d/rcK
315 install -D -m 0755 ${WORKDIR}/rcS.default ${D}${sysconfdir}/default/rcS
315 fi 316 fi
316 317
317 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then 318 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 \
33 file://getopts.cfg \ 33 file://getopts.cfg \
34 file://resize.cfg \ 34 file://resize.cfg \
35 ${@["", "file://init.cfg"][(d.getVar('VIRTUAL-RUNTIME_init_manager') == 'busybox')]} \ 35 ${@["", "file://init.cfg"][(d.getVar('VIRTUAL-RUNTIME_init_manager') == 'busybox')]} \
36 ${@["", "file://rcS.default"][(d.getVar('VIRTUAL-RUNTIME_init_manager') == 'busybox')]} \
36 ${@["", "file://mdev.cfg"][(d.getVar('VIRTUAL-RUNTIME_dev_manager') == 'busybox-mdev')]} \ 37 ${@["", "file://mdev.cfg"][(d.getVar('VIRTUAL-RUNTIME_dev_manager') == 'busybox-mdev')]} \
37 file://syslog.cfg \ 38 file://syslog.cfg \
38 file://unicode.cfg \ 39 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"