]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
busybox: Explicitly specify tty device for serial consoles
authorAleksey Smirnov <aleksey.smirnov@yadro.com>
Wed, 7 Feb 2024 11:51:06 +0000 (14:51 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Feb 2024 09:34:23 +0000 (09:34 +0000)
Description: In case of two or more consoles are in inittab,
and not specified tty device for first one, some keys works improperly,
ex: arrows, backspace, pgup/pgdown; The patch is fixes this issue.

Signed-off-by: Aleksey Smirnov <aleksey.smirnov@yadro.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-core/busybox/busybox-inittab_1.36.1.bb

index 8ee88b6aeff4c3805654be4304cadbdcc6be561f..6904a91930f94b85e88c4984fac1cc27f24ef327 100644 (file)
@@ -23,7 +23,7 @@ do_install() {
         device=$(echo $s | cut -d\; -f 2)
         label=$(echo $device | sed -e 's/tty//' | tail --bytes=5)
 
-        echo "::respawn:${sbindir}/ttyrun $device ${base_sbindir}/getty $speed $device" >> ${D}${sysconfdir}/inittab
+        echo "$device::respawn:${sbindir}/ttyrun $device ${base_sbindir}/getty $speed $device" >> ${D}${sysconfdir}/inittab
     done
 
        if [ "${USE_VT}" = "1" ]; then