On Wed, 6 Dec 2000, Cokey de Percin wrote:
> Matthew Melvin wrote:
> >
> > Anyway - all of that aside I don't have any trouble running getty in single
> > user mode (using the inittab entries from my previous email) I just don't
> > see that as being desirable. If the system's sufficently toast that I need
> > to be in S then I don't want to have rely on login working and root's
> > account being functional.
> >
>
> Well, that's the only I've been able to get mine to work. Even in single
> mode, getty's running.
>
Seems to be the concensus that I'm not going to get away from running getty
in runlevel S then. I'm really supprised that none of the documentation of
setting up a serial console mention this - they just suggest that you should
delete /etc/ioctl.save before using the serial port for the first time and
all will be taken care of. Well that was my impression anyway. :)
In the mean time I've kludged it to use getty when I've booted with ttyS0 as
primary console but still use bash when tty0 is primary.
In /etc/inittab ...
~~:S:wait:/sbin/consolechooser
... and then consolechooser is just a shell script..
#!/bin/bash
if [ "$(/sbin/consoletype)" = "serial" ]; then
exec /sbin/getty ttyS0 DT9600 vt102
fi
exec /bin/bash
... untill I figure out why i can't do without getty I guess that's as good
as I can hope for.
Thanks for your help anyway.. :)
M.
--
WebCentral Pty Ltd Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road. Network Operations - Systems Engineer
PO Box 4169, East Brisbane. phone: +61 7 3249 2583
Queensland, Australia. pgp key id: 0x900E515F
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list