diff options
author | Randy Witt <randy.e.witt@linux.intel.com> | 2015-08-27 19:40:18 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-29 13:18:17 +0100 |
commit | 4cca92b34defae425929d92671edde621f8a5e80 (patch) | |
tree | 9da4ac2a6d264a383acf5526018241eb64fb42f8 | |
parent | f28757a4b89447ea528cba987f0396b92aa0bbfe (diff) | |
download | openembedded-core-4cca92b34defae425929d92671edde621f8a5e80.tar.gz openembedded-core-4cca92b34defae425929d92671edde621f8a5e80.tar.bz2 openembedded-core-4cca92b34defae425929d92671edde621f8a5e80.zip |
sysvinit-inittab: Run ttys on ttys that don't have tty in the name
On qemuarm64 the second serial port in SERIAL_CONSOLES will be hvc0.
Since that doesn't have tty in the name, a correct label didn't get
added to inittab.
This change makes both names with tty and without work.
Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb | 3 |
1 files changed, 2 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 e087f0ff86..49b1326a26 100644 --- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb +++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb @@ -18,11 +18,12 @@ do_install() { install -d ${D}${sysconfdir} install -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab + set -x tmp="${SERIAL_CONSOLES}" for i in $tmp do j=`echo ${i} | sed s/\;/\ /g` - label=`echo ${i} | sed -e 's/^.*;tty//' -e 's/;.*//'` + label=`echo ${i} | sed -e 's/tty//' -e 's/^.*;//' -e 's/;.*//'` echo "$label:12345:respawn:${base_sbindir}/getty -L ${j}" >> ${D}${sysconfdir}/inittab done |