Subject: Re: requirements for getty replacement
To: Johnny Billquist <bqt@Update.UU.SE>
From: Marcin Jessa <lists@yazzy.org>
List: current-users
Date: 07/05/2005 12:41:07
On Tue, 5 Jul 2005 12:30:46 +0200 (CEST)
Johnny Billquist <bqt@Update.UU.SE> wrote:

> On Tue, 5 Jul 2005, Marcin Jessa wrote:
> 
> > On Tue, 5 Jul 2005 11:49:52 +0200 (CEST)
> > Johnny Billquist <bqt@Update.UU.SE> wrote:
> >
> > > On Tue, 5 Jul 2005, Marcin Jessa wrote:
> > >
> > > > Hi guys.
> > > >
> > > > What are the requirements for an application to replace /usr/libexec/getty in /etc/ttys ?
> > > > I would like to run a custom application there, something like /bin/sh /sysinst Pc ttyE1 vt220
> > > > The problem is , running it gives me some kind of loop:
> > >
> > > Yes. When the program started by init (the program given in /etc/tty)
> > > finishes, init starts it again. That's the nature of things. In your case,
> > > sysinst seems to abort because of an error when playing with wsconscfg,
> > > and thus it is restarted.
> >
> > So running a daemon would solve that?
> > What I need is to be able to fire up console on ttyE1 while in single
> > user mode without having a login: screen (that's what getty runs) and
> > run a custom application.
> 
> Could you skip the "single user mode" terminology, because from what I've
> read, that is not what you want.
> 
> You want the system to start up all services, and so on, but you don't
> want a login prompt.

No, I am creating a custom embedded system and in this case I do not want to start any services.
The system mounts rootfs in memory and drops to single user mode.
installboot uses console=com0 which makes serial console default.
All I need is to fire up console on ttyE1 in addition to serial console and execute custom scripts e.g /.profile in one of consoles when user answers Yes/No.
The system will then partition the HD/CF and install a "normal" NetBSD system.

> single user means no daemons (more or less) have started, noting have been
> conofigured, and so on.
> 

Yes, I am pretty aware of what happens in single user mode.




l