From owner-freebsd-questions Wed Sep 11 10:59:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A07337B400 for ; Wed, 11 Sep 2002 10:59:27 -0700 (PDT) Received: from fep02-app.kolumbus.fi (fep02-0.kolumbus.fi [193.229.0.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E19543E65 for ; Wed, 11 Sep 2002 10:59:26 -0700 (PDT) (envelope-from desti@sigtrap.com) Received: from sigtrap.com ([212.54.6.16]) by fep02-app.kolumbus.fi with ESMTP id <20020911175924.LGUQ22644.fep02-app.kolumbus.fi@sigtrap.com>; Wed, 11 Sep 2002 20:59:24 +0300 Message-ID: <3D7F8520.2070601@sigtrap.com> Date: Wed, 11 Sep 2002 21:02:08 +0300 From: Edvard Fagerholm User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020612 X-Accept-Language: fi, en-us, en MIME-Version: 1.0 To: Mike Hogsett Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Starting programs automatically during boot on a virtual terminal References: <200209111729.g8BHTlP8065229@axp.csl.sri.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello! I actually did this. I created a binary called getty.alt that executed login.alt and used it on ttyv0. I think that approach should work. Another problem is that I can't compile anything on this box (~140MB hdd), so I compiled it on another. This binary however dumps core. I didn't have time to look at it further (as I went home), but I'll take a look at it tomorrow. Anyways I thought there was a better solution that wouldn't require me to tinker with the source as it can be done on many other systems by just editing a few configuration files. I already had to do some source hacking to get a few things working on it and I'd like to keep it as standard as possible as it is used at a student club at the university where I'm studying and usually fellow volunteer admins like me tend to disappear leaving a mess behind them, so something simple would be better (actually the guy who built this system (the old version) in the first place doesn't study here anymore, there's no documentation and the old system running RedHat linux was even worse...). Well, I'm not interested in documenting this stuff either in my spare time, so in a few years someone else is going to get a similar mess to play with :) - edvard Mike Hogsett wrote: > > I assume you have /usr/src, why not compile your own getty changing > _PATH_LOGIN to something else in /usr/src/libexec/getty/pathnames.h? > > I have never done this but it is what I would start with. > > - Mike > > >>Hello! >> >>I need to start a curses based front-end to an application automatically >>during boot on a terminal without ever asking for any login or similar. >>How can this be done in FreeBSD? On linux you can use inittab and use >>the binary "open" to configure the terminal, but I've got no idea how to >>do it on FreeBSD. >> >>So ttyv0 should be running this program and all the other terminals >>should have a normal login prompt. I've looked at various files like >>/etc/ttys where you can specify the terminal application to run, but you >>can't just run any application here as it has to configure the terminal >>and getty can't be used as it doesn't run any other binary than "login". >> >>Thanks in advance >>Edvard >> >> >> >>To Unsubscribe: send mail to majordomo@FreeBSD.org >>with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message