On Thursday 31 January 2002 13:54, Russell King - ARM Linux wrote:
> On Thu, Jan 31, 2002 at 01:46:34PM -0600, Cam Mayor wrote:
> > Dave solved it by modifying inittab so that the tty prefix precedes the
> > rest.
> >
> > ::respawn:tinylogin getty -L 115200 ttyS1 vt100
>
> Umm, the 'id' is required by init - its used to locate and maintain the
> entries in the utmp file.  From the inittab man page:
[snip]
> Note the limit of 4 characters however.

That's what i thought, too.  I got my /etc directory from Ray/Roland's 
example tarball.  In all fairness, they say to modify it for your own system, 
but i never did modify the inittab file.  Oddly enough, everything seems to 
work the way it is.  (well, if it doesn't, i haven't had something obvious 
pointing back to the inittab file)  I have attached the current /etc/inittab 
to the end of this mail.  When i tried putting a 1-digit id field at the 
beginning, the getty process didn't spawn.  That puzzled me, as i also 
thought the id field was required, and i had read about the 4-digit limit.  I 
have been using the attached inittab file (the uncommented parts) as-is for 
about six months now.

The past hour i've been combing through the Config.h file in Busybox and 
Tinylogin, looking for anything i may have missed.  Haven't found anything 
obvious, yet.

cheers,
cam

(please note that ttyS* is a symbolic link to ttyAM*.  i can use either)

# the #-character is a comment
::sysinit:/etc/rc
::respawn:/sbin/syslogd -n
::respawn:/sbin/klogd -n
::respawn:-/bin/sh
#::respawn:/sbin/getty -L ttyAM0 115200 vt100  #this spawns, but my console 
is on ttyAM0
#::respawn:/sbin/getty -L ttyAM1 115200 vt100  #this spawns, TIOCSPGRP error
#::respawn:/sbin/getty -L ttyS1 115200 vt100  #this spawns, TIOCSPGRP error
#ttyS1::respawn:/sbin/getty -L ttyS1 115200 vt100  #this does not spawn
#i can run this by hand from the console and it spawns, but causes a segfault
#when attempting login


_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to