Skip to contentSkip to conversation

sysvinit-inittab: make TERM=vt102 on serial consoles

PATCH New André Draszik 1 participant 1 message Nov 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sysvinit-inittab: make TERM=vt102 on serial consoles

From: André Draszik <[email protected]>

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.

---
 meta/recipes-core/sysvinit/sysvinit-inittab/start_getty | 2 +-
 meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/sysvinit/sysvinit-inittab/start_getty +1 -1
index 6eaeb7a..e3d052a 100644
@@ -1,5 +1,5 @@
 #!/bin/sh
 if [ -c /dev/$2 ]
 then 
-	/sbin/getty -L $1 $2
+	/sbin/getty -L $1 $2 $3
 fi
meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb +1 -1
index f136ad8..c219cbf 100644
@@ -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
Signature · 1 line
2.10.2