]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
sysvinit-inittab: make TERM=vt102 on serial consoles
authorAndré Draszik <adraszik@tycoint.com>
Thu, 10 Nov 2016 10:47:01 +0000 (10:47 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Nov 2016 11:02:27 +0000 (11:02 +0000)
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.

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/sysvinit/sysvinit-inittab/start_getty
meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb

index 6eaeb7a2b01d3056e2d5d4aa630c52aafd934af4..e3d052a84025729a75d77aa325ac53be505c82df 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
 if [ -c /dev/$2 ]
 then 
-       /sbin/getty -L $1 $2
+       /sbin/getty -L $1 $2 $3
 fi
index f136ad821b032bb492b7862d57f4bd331e962ff1..c219cbf9a749ead2877aa3ce93d76490f5eeec66 100644 (file)
@@ -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