source: trunk/minix/man/man5/ttytab.5@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.9 KB
RevLine 
[9]1.TH TTYTAB
2.SH NAME
3ttytab \- table of login terminals
4.SH SYNOPSIS
5.B /etc/ttytab
6.SH DESCRIPTION
7.de SP
8.if t .sp 0.4
9.if n .sp
10..
11The
12.B ttytab
13file lists all the terminal devices that one can login on. It is a simple
14text file that contains lines of the form:
15.PP
16.RS
17.ft I
18.ta +\w'namennn'u +\w'typennn'u +\w'"getty"nnn'u
19name type "getty" "init"
20.DT
21.ft R
22.RE
23.PP
24The
25.I name
26and
27.I type
28fields are simple words,
29.I name
30is the name of the terminal device with
31.B /dev
32stripped off, and
33.I type
34tells the type of terminal to initialize the
35.B TERM
36environment variable.
37.PP
38The
39.I getty
40and
41.I init
42fields may name commands that are run to allow one to login on the line, or
43to initialize the line. Both these fields may be more than one word if
44the whole field is enclosed in double quotes.
45.I Getty
46is usually simply the word
47.BR getty ,
48the command that prints a system identification banner and allows on to type
49a name to log in.
50.I Init
51is usually an
52.B stty
53command to set the baud rate and parity of a serial line.
54.PP
55The
56.I init
57field may be omitted to indicate that no initialization is necessary, and the
58.I getty
59field may be left out to not start a login process. Terminals should not be
60left out, because their place in the
61.B ttytab
62file determines their slot number as returned by
63.BR ttyslot (3).
64.PP
65Comments (introduced by #) and empty lines are ignored.
66.SH EXAMPLE
67A
68.B ttytab
69for the console, two serial lines, and a pseudo tty entry:
70.PP
71.RS
72.nf
73.ta +\w'consolennn'u +\w'networknnn'u +\w'gettynnnn'u
74console minix getty
75tty00 vt100 getty "stty 9600"
76tty01 dialup getty "stty 38400"
77ttyp0 network
78.DT
79.fi
80.RE
81.SH ENVIRONMENT
82.TP 15n
83.B TERM
84Terminal type
85.SH NOTES
86It is customary to set the type to
87.B dialup
88for a dialin line. One can check for that name in one's
89.BR .profile .
90.SH "SEE ALSO"
91.BR getttyent (3),
92.BR ttyslot (3),
93.BR init (8).
94.SH AUTHOR
95Kees J. Bot (kjb@cs.vu.nl)
Note: See TracBrowser for help on using the repository browser.