serial console and log-in

Natanael Copa natanael.copa at gmail.com
Fri Mar 2 06:49:50 UTC 2007


On Fri, 2007-03-02 at 01:35 +0000, Luciano Miguel Ferreira Rocha wrote:
> On Fri, Mar 02, 2007 at 01:57:08AM +0100, Natanael Copa wrote:
> > On Thu, 2007-03-01 at 00:26 +0100, Denis Vlasenko wrote:
> > 
> > > How about writing small hack which analyzes stdin (fd #0)
> > > and closes fd #0,1,2 + reopens/dups /dev/ttyN or /dev/ttySn:
> > 
> > ...
> > 
> > > then exec it's argv?
> > > 
> > > Use it like this:
> > > 
> > > ::respawn:/somewhere/cttyhack /sbin/getty - 9600 vt100
> > > 
> > > Care to try? ;)
> > 
> > Sounds good. I'll give it a shot. Thanks alot.
> 
> Well, if it's external to init, you can also grep for console= in
> /proc/cmdline.

No I can't. The kernel will use ttyS0 automatically if no VGA card is
found so you can guarantee that there is any console= at all on cmdline.

Natanael





More information about the busybox mailing list