Received: from mail.pbcl.net ([88.198.119.4] helo=hetzner.pbcl.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RRJae-0007QI-Di for openembedded-core@lists.openembedded.org; Fri, 18 Nov 2011 09:14:28 +0100 Received: from blundell.swaffham-prior.co.uk ([91.216.112.25] helo=[192.168.114.3]) by hetzner.pbcl.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1RRJUR-000118-Lc; Fri, 18 Nov 2011 09:08:03 +0100 From: Phil Blundell To: McClintock Matthew-B29882 , Patches and discussions about the oe-core layer In-Reply-To: References: <1321570027-29390-1-git-send-email-msm@freescale.com> Date: Fri, 18 Nov 2011 08:07:44 +0000 Message-ID: <1321603664.5276.2.camel@lenovo.internal.reciva.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 Subject: Re: [PATCH] Remove ttyS* from /etc/inittab that are not present X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2011 08:14:28 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2011-11-18 at 00:23 +0000, McClintock Matthew-B29882 wrote: > I'm mostly soliciting ideas for how we detect if a serial port is > actually present besides 'dmesg' I guess the obvious one is to try opening it. Something like: if [ true < /dev/ttyS0 ]; then echo present else echo not present fi maybe. Or teach init not to try to spawn getty on ttys that don't exist and leave the inittab alone. p.