[OE-core] [PATCH] Remove ttyS* from /etc/inittab that are not present

Phil Blundell philb at gnu.org
Fri Nov 18 08:07:44 UTC 2011


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.






More information about the Openembedded-core mailing list