Subject: Re: any way to test what virtual console are logging in from?
To: Henry Nelson <henry@irm.nara.kindai.ac.jp>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 12/05/2000 20:55:21
On Tue, Dec 05, 2000 at 10:10:45AM +0900, Henry Nelson wrote:
> I use /bin/csh, and I'd like some way to switch between what settings
> are in .login depending on what virtual console (ttyv0, ttyv1 or ttyv2)
> I log in from.  Specifically, I am interested in changing stty settings.
> Does anyone know how to write an if statement to do this?  TIA.

Something like:
if (`tty` == "/dev/ttyE0") then
<ttyE0 stuff>
endif

should work.

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