sysvinit-inittab: make TERM=vt102 on serial consoles
This makes more sense than the default TERM=linux (as set by the linux kernel). In addition, when using busybox init, it tries to achieve the same (in a different way). Both agetty, and busybox getty support the terminal type as the last argument. (From OE-Core rev: a23004f32dda9310c7efc29720fa9c3027a7c329) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5deddc8767
commit
993fbcfb85
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
if [ -c /dev/$2 ]
|
||||
then
|
||||
/sbin/getty -L $1 $2
|
||||
/sbin/getty -L $1 $2 $3
|
||||
fi
|
||||
|
|
|
@ -28,7 +28,7 @@ do_install() {
|
|||
j=`echo ${i} | sed s/\;/\ /g`
|
||||
l=`echo ${i} | sed -e 's/tty//' -e 's/^.*;//' -e 's/;.*//'`
|
||||
label=`echo $l | sed 's/.*\(....\)/\1/'`
|
||||
echo "$label:12345:respawn:${base_bindir}/start_getty ${j}" >> ${D}${sysconfdir}/inittab
|
||||
echo "$label:12345:respawn:${base_bindir}/start_getty ${j} vt102" >> ${D}${sysconfdir}/inittab
|
||||
done
|
||||
|
||||
if [ "${USE_VT}" = "1" ]; then
|
||||
|
|
Loading…
Reference in New Issue