Subject: Re: Laptop autologin
To: Phillip Rulon <pjr@gnu.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 05/14/2002 20:44:18
On Thu, May 09, 2002 at 12:19:56PM -0400, Phillip Rulon wrote:
> Greetings,
>   So I lost the disk on my thinkpad (current backup, fortunately).
> Now I take the opportunity to load 1.5.2 (ex. Debian) on a new
> drive.  The base install over ftp goes fine and I'm up in minutes,
> thanks.
> 
> Now I come to a hack to get the machine to just log me in and 
> fire up the X server since console security on this thing is
> a non-issue.  The Debian hack sets up inittab with a line like
> 
> 1:somerunlevel:/dev/sometty:/usr/bin/su - joeuser somescript: ...
> 
> instead of putting a getty on the tty.  So I'm setting up the
> new system and it looks like I can do this with /etc/ttys and
> a similar hack.  So far, no.  The man page says that it's
> usually used to start gettys but "it can be any desired command"
> I tried several things but came down to this
> 
> ttyE0	"/bin/sh"	vt220	on	secure
> 
> which fails with the init message:
> 
> init: getty repeating to quickly on port /dev/ttyE0, sleeping

The environnement may not be good enouth for sh to run.
Maybe you could try to start your script from /etc/rc.local ?

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--