summaryrefslogtreecommitdiffstats
path: root/libexec/getty/init.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-04 04:36:50 +0000
committerpeter <peter@FreeBSD.org>1999-04-04 04:36:50 +0000
commitdf68fc891ee0312e07a22bce08ce1dbceab3cc8c (patch)
treeda3be46c62a4c622a7e6485d49a37765a7cc2337 /libexec/getty/init.c
parent51fa2770453bbfdd2e24f97d58127572525f6cf9 (diff)
downloadFreeBSD-src-df68fc891ee0312e07a22bce08ce1dbceab3cc8c.zip
FreeBSD-src-df68fc891ee0312e07a22bce08ce1dbceab3cc8c.tar.gz
Add an 'al' (autologin username) capability to getty/gettytab. This is a
damn useful thing for using with serial consoles in clusters etc or secure console locations. Using a custom gettytab entry for console with an entry like 'al=root' means that there is *always* a root login ready on the console. This should replace hacks like those which go with conserver etc. (This is a loaded gun, watch out for those feet!) Submitted by: "Andrew J. Korty" <ajk@purdue.edu>
Diffstat (limited to 'libexec/getty/init.c')
-rw-r--r--libexec/getty/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/getty/init.c b/libexec/getty/init.c
index 31c62a2..3f279fa 100644
--- a/libexec/getty/init.c
+++ b/libexec/getty/init.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)from: init.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: init.c,v 1.9 1997/11/21 07:43:49 charnier Exp $";
#endif /* not lint */
/*
@@ -83,6 +83,7 @@ struct gettystrs gettystrs[] = {
{ "if" }, /* sysv-like 'issue' filename */
{ "ic" }, /* modem init-chat */
{ "ac" }, /* modem answer-chat */
+ { "al" }, /* user to auto-login */
{ 0 }
};
OpenPOWER on IntegriCloud