diff options
author | André Draszik <adraszik@tycoint.com> | 2016-11-10 10:47:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-23 11:10:13 +0000 |
commit | 993fbcfb85e4556577328ec9021b6e2769f3722a (patch) | |
tree | 26baea1766248930241a568b79f86cce976dfd82 /meta | |
parent | 5deddc8767878dedf6020788dcb8d6158ea91b57 (diff) | |
download | poky-993fbcfb85e4556577328ec9021b6e2769f3722a.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit-inittab/start_getty | 2 | ||||
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty b/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty index 6eaeb7a2b0..e3d052a840 100644 --- a/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty +++ b/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty | |||
@@ -1,5 +1,5 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | if [ -c /dev/$2 ] | 2 | if [ -c /dev/$2 ] |
3 | then | 3 | then |
4 | /sbin/getty -L $1 $2 | 4 | /sbin/getty -L $1 $2 $3 |
5 | fi | 5 | fi |
diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb index f136ad821b..c219cbf9a7 100644 --- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb +++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb | |||
@@ -28,7 +28,7 @@ do_install() { | |||
28 | j=`echo ${i} | sed s/\;/\ /g` | 28 | j=`echo ${i} | sed s/\;/\ /g` |
29 | l=`echo ${i} | sed -e 's/tty//' -e 's/^.*;//' -e 's/;.*//'` | 29 | l=`echo ${i} | sed -e 's/tty//' -e 's/^.*;//' -e 's/;.*//'` |
30 | label=`echo $l | sed 's/.*\(....\)/\1/'` | 30 | label=`echo $l | sed 's/.*\(....\)/\1/'` |
31 | echo "$label:12345:respawn:${base_bindir}/start_getty ${j}" >> ${D}${sysconfdir}/inittab | 31 | echo "$label:12345:respawn:${base_bindir}/start_getty ${j} vt102" >> ${D}${sysconfdir}/inittab |
32 | done | 32 | done |
33 | 33 | ||
34 | if [ "${USE_VT}" = "1" ]; then | 34 | if [ "${USE_VT}" = "1" ]; then |