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:38:04 +0100 |
commit | a8a061b91dceb8425838ca47a38e56b3f7be6b6b (patch) | |
tree | b379dbda06b7d6b05edb434c3637a6d2beec891e /meta | |
parent | 5c0e6f8e95df45daf3856ef2c39471e2feaafc24 (diff) | |
download | poky-a8a061b91dceb8425838ca47a38e56b3f7be6b6b.tar.gz |
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.
(From OE-Core rev: 4cca92b34defae425929d92671edde621f8a5e80)
Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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() { | |||
18 | install -d ${D}${sysconfdir} | 18 | install -d ${D}${sysconfdir} |
19 | install -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab | 19 | install -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab |
20 | 20 | ||
21 | set -x | ||
21 | tmp="${SERIAL_CONSOLES}" | 22 | tmp="${SERIAL_CONSOLES}" |
22 | for i in $tmp | 23 | for i in $tmp |
23 | do | 24 | do |
24 | j=`echo ${i} | sed s/\;/\ /g` | 25 | j=`echo ${i} | sed s/\;/\ /g` |
25 | label=`echo ${i} | sed -e 's/^.*;tty//' -e 's/;.*//'` | 26 | label=`echo ${i} | sed -e 's/tty//' -e 's/^.*;//' -e 's/;.*//'` |
26 | echo "$label:12345:respawn:${base_sbindir}/getty -L ${j}" >> ${D}${sysconfdir}/inittab | 27 | echo "$label:12345:respawn:${base_sbindir}/getty -L ${j}" >> ${D}${sysconfdir}/inittab |
27 | done | 28 | done |
28 | 29 | ||