[oe-commits] Muhammad Shakeel : sysvinit-inittab: Fix getting tty device name from SERIAL_CONSOLES entries

git at git.openembedded.org git at git.openembedded.org
Thu Oct 10 08:05:08 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 8498c09c801c3b8e05618789659be956f4a11ab7
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8498c09c801c3b8e05618789659be956f4a11ab7

Author: Muhammad Shakeel <muhammad_shakeel at mentor.com>
Date:   Mon Oct  7 15:05:04 2013 +0000

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.

Signed-off-by: Muhammad Shakeel <muhammad_shakeel at mentor.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 .../sysvinit/sysvinit-inittab_2.88dsf.bb           |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
index 23c284d..05ba410 100644
--- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
@@ -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
 



More information about the Openembedded-commits mailing list