From: Aleksey Smirnov Date: Wed, 7 Feb 2024 11:51:06 +0000 (+0300) Subject: busybox: Explicitly specify tty device for serial consoles X-Git-Tag: uninative-4.4~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7eea4ef84d74e618fb00fa73c773acdf775d052a;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git busybox: Explicitly specify tty device for serial consoles 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 Signed-off-by: Alexandre Belloni --- diff --git a/meta/recipes-core/busybox/busybox-inittab_1.36.1.bb b/meta/recipes-core/busybox/busybox-inittab_1.36.1.bb index 8ee88b6aeff..6904a91930f 100644 --- a/meta/recipes-core/busybox/busybox-inittab_1.36.1.bb +++ b/meta/recipes-core/busybox/busybox-inittab_1.36.1.bb @@ -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