]> code.ossystems Code Review - openembedded-core.git/commit
sysvinit-inittab/start_getty: Check /sys for the tty device existence
authorKevin Hao <kexin.hao@windriver.com>
Wed, 7 Apr 2021 12:18:11 +0000 (20:18 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 18 Apr 2021 10:29:05 +0000 (11:29 +0100)
commit670ceef0f6584ece5ce4176610255226a6148570
tree04a20894dfcf8e16597219aefcd65bbad931ad37
parentc34650400182a1104a5fbe03e54f5cea69eb1900
sysvinit-inittab/start_getty: Check /sys for the tty device existence

The hvc tty driver doesn't populate a file like /proc/tty/driver/serial,
so the current implementation of start_getty doesn't work for the hvc
console. By checking the /sys/class/tty/ for the tty device existence,
it should support more console types and also make the codes more simple.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/sysvinit/sysvinit-inittab/start_getty