summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
authorMike Nicholson <mike.nicholson@multitech.com>2020-04-24 09:09:39 -0500
committerSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2020-05-21 10:49:34 +0300
commit81257c1c0722427128fea79c71a502cad8db9bb1 (patch)
tree78f375a95ad2728e39d1ad9bd973983f1609d45c /recipes-core
parent18299cae14b18fd648c29bbf14db211033fd9068 (diff)
downloadmeta-mlinux-81257c1c0722427128fea79c71a502cad8db9bb1.tar.gz
meta-mlinux-81257c1c0722427128fea79c71a502cad8db9bb1.tar.bz2
meta-mlinux-81257c1c0722427128fea79c71a502cad8db9bb1.zip
Add new bootlogd default config
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend8
1 files changed, 6 insertions, 2 deletions
diff --git a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
index be33f10..9b7e787 100644
--- a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
+++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
@@ -4,9 +4,11 @@ SUMMARY_${PN}-start = "Production console"
SERIAL_CONSOLES_append_mtcdt = " 115200;ttyGS0"
PACKAGES =+ "${PN}-start ${PN}-start-open"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
-SRC_URI += "file://start_getty_open"
+SRC_URI += "file://start_getty_open \
+ file://bootlogd \
+ "
-FILES_${PN} = "${sysconfdir}/inittab"
+FILES_${PN} = "${sysconfdir}/inittab ${sysconfdir}/default/bootlogd"
FILES_${PN}-start = "${base_bindir}/start_getty"
FILES_${PN}-start-open = "${base_bindir}/start_getty_open"
RCONFLICTS_${PN}-start = "${PN}-start-open"
@@ -15,6 +17,8 @@ RDEPENDS_${PN}-start-open = "${PN}"
do_install_append() {
install -m 0755 ${WORKDIR}/start_getty_open ${D}${base_bindir}/start_getty_open
+ install -d ${D}{sysconfdir}/default
+ install -m 0644 ${WORKDIR}/bootlogd ${D}{sysconfdir}/default/
}
pkg_postinst_${PN}-start-open() {
sed -i 's?^S0:.*?S0:12345:respawn:/bin/start_getty_open 115200 ttyS0?' $D/etc/inittab