mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
sysvinit-inittab: Fix getting tty device name from SERIAL_CONSOLES entries
Currently the part after "tty" in the device name go into label along with everything after that part. For example if SERIAL_CONSOLES="115200;vt100;ttyS0" than label=S0 but if SERIAL_CONSOLES="115200;ttyS0;vt100" than label=S0;vt100. If SERIAL_CONSOLES="..;ttyX;..", part after 'X' should also be trimmed. (From OE-Core rev: b00b9ae5693e04cacd0843c12a529e7f3dc501ed) Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0f431a3123
commit
3e01f9574a
@@ -22,7 +22,7 @@ do_install() {
|
||||
for i in $tmp
|
||||
do
|
||||
j=`echo ${i} | sed s/\;/\ /g`
|
||||
label=`echo ${i} | sed -e 's/^.*;tty//'`
|
||||
label=`echo ${i} | sed -e 's/^.*;tty//' -e 's/;.*//'`
|
||||
echo "$label:12345:respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user