diff options
author | John Klug <john.klug@multitech.com> | 2019-12-04 13:35:28 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-06-18 20:16:35 -0500 |
commit | a5794b79a6b633d3932ec0304ffa9865ad7a237e (patch) | |
tree | 0b9e4ffbc63d7d54ef276e1cd9a3eb03416402fe /recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | |
parent | a7db882bb8023057fbbcaab111b5bbf5c291f602 (diff) | |
download | meta-mlinux-a5794b79a6b633d3932ec0304ffa9865ad7a237e.tar.gz meta-mlinux-a5794b79a6b633d3932ec0304ffa9865ad7a237e.tar.bz2 meta-mlinux-a5794b79a6b633d3932ec0304ffa9865ad7a237e.zip |
Create mlinux-basetest-image which has no login for console
Diffstat (limited to 'recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend')
-rw-r--r-- | recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend index 6c79846..be33f10 100644 --- a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend +++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend @@ -1,2 +1,25 @@ # enable gadget serial console for supported hardware +SUMMARY_${PN}-start-open = "Open debug console for development only" +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" + +FILES_${PN} = "${sysconfdir}/inittab" +FILES_${PN}-start = "${base_bindir}/start_getty" +FILES_${PN}-start-open = "${base_bindir}/start_getty_open" +RCONFLICTS_${PN}-start = "${PN}-start-open" +RCONFLICTS_${PN}-start-open = "${PN}-start" +RDEPENDS_${PN}-start-open = "${PN}" + +do_install_append() { + install -m 0755 ${WORKDIR}/start_getty_open ${D}${base_bindir}/start_getty_open +} +pkg_postinst_${PN}-start-open() { + sed -i 's?^S0:.*?S0:12345:respawn:/bin/start_getty_open 115200 ttyS0?' $D/etc/inittab +} + +pkg_prerm_${PN}-start-open() { + sed -i 's?^S0:.*?S0:12345:respawn:/bin/start_getty 115200 ttyS0?' $D/etc/inittab +} |