Received: from mail.pbcl.net ([88.198.119.4] helo=hetzner.pbcl.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RRTqf-0003oC-P1 for openembedded-core@lists.openembedded.org; Fri, 18 Nov 2011 20:11:41 +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 1RRTkT-0001Vp-9Q; Fri, 18 Nov 2011 20:05:17 +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> <1321603664.5276.2.camel@lenovo.internal.reciva.com> Date: Fri, 18 Nov 2011 19:04:31 +0000 Message-ID: <1321643071.3240.0.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 19:11:41 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2011-11-18 at 17:54 +0000, McClintock Matthew-B29882 wrote: > On Fri, Nov 18, 2011 at 2:07 AM, Phil Blundell wrote: > > if [ true < /dev/ttyS0 ]; then > > This test returns 0 if the serial node is in my device tree or not > (e.g. there or not). That sounds like a shell bug to me. What shell are you using? p.