]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Fri, 23 Apr 2021 08:18:03 +0000 (16:18 +0800)
commitab7a1f14191e882439715e82f1636d7713e1da03
tree3cf0e4f50c07ff29011ec5ea6e5ee1baa3e59a3a
parent1aa5d8231a7e4ee2f19afbe12aa49fc19c854062
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>
(cherry picked from commit 670ceef0f6584ece5ce4176610255226a6148570)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-core/sysvinit/sysvinit-inittab/start_getty