Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Matthew McClintock <msm@freescale.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 2/2] sysvinit-inittab.bb: fix up dynamically removed consoles
Date: Tue, 10 Jul 2012 15:00:40 -0500	[thread overview]
Message-ID: <1341950440-19009-2-git-send-email-msm@freescale.com> (raw)
In-Reply-To: <1341950440-19009-1-git-send-email-msm@freescale.com>

Using dmesg could result in removing all the serial consoles as the
dmesg buffer might get filled up and erase the info we are looking
for. Instead let's look at /proc/consoles

Signed-off-by: Matthew McClintock <msm@freescale.com>
---
 meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
index fe1ff41..fae3cac 100644
--- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "Inittab for sysvinit"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
 
-PR = "r8"
+PR = "r9"
 
 SRC_URI = "file://inittab"
 
@@ -59,7 +59,7 @@ if [ "x$D" == "x" ]; then
 	for i in $tmp
 	do
 		j=`echo ${i} | sed s/^.*\;//g`
-		if [ -z "`dmesg | grep ${j}`" ]; then
+		if [ -z "`cat /proc/consoles | grep ${j}`" ]; then
 			sed -i /^.*${j}$/d /etc/inittab
 		fi
 	done
-- 
1.7.10





  reply	other threads:[~2012-07-10 21:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-10 20:00 [PATCH 1/2] Fix hang issue when execute "shutdown now" command Matthew McClintock
2012-07-10 20:00 ` Matthew McClintock [this message]
2012-07-10 21:04   ` [PATCH 2/2] sysvinit-inittab.bb: fix up dynamically removed consoles McClintock Matthew-B29882
2012-07-10 20:48 ` [PATCH 1/2] Fix hang issue when execute "shutdown now" command McClintock Matthew-B29882

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1341950440-19009-2-git-send-email-msm@freescale.com \
    --to=msm@freescale.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox