Date: Wed, 11 Sep 2002 21:02:08 +0300 From: Edvard Fagerholm <desti@sigtrap.com> To: Mike Hogsett <hogsett@csl.sri.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Starting programs automatically during boot on a virtual terminal Message-ID: <3D7F8520.2070601@sigtrap.com> References: <200209111729.g8BHTlP8065229@axp.csl.sri.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D7F8520.2070601>