Next | Prev | Up | Top | Contents | Index

Checking Line Settings Using IRIX Shell Commands

The /etc/gettydefs file contains information used by the getty command to establish the speed and terminal settings for a line. The general format of the gettydefs file is:

label# initial-flags # final-flags #login-prompt #next-label

The following example shows a few lines from a gettydefs file:

dx_9600# B9600 # B9600 SANE TAB3 HUPCL #\r\n\n$HOSTNAME login: #dx_9600 
dx_4800# B4800 # B4800 SANE TAB3 HUPCL #\r\n\n$HOSTNAME login: #dx_4800 
dx_2400# B2400 # B2400 SANE TAB3 HUPCL #\r\n\n$HOSTNAME login: #dx_2400 
dx_1200# B1200 # B1200 SANE TAB3 HUPCL #\r\n\n$HOSTNAME login: #dx_1200 
du_1200# B1200 # B1200 SANE TAB3 HUPCL #\r\n\n$HOSTNAME login: #du_300 
du_300#  B300  # B300  SANE TAB3 HUPCL #\r\n\n$HOSTNAME login: #du_2400 
du_2400# B2400 # B2400 SANE TAB3 HUPCL #\r\n\n$HOSTNAME login: #du_1200 
The entries beginning with dx are typically used for terminals or modems; those beginning with du are typically for low-speed modems. See gettydefs(4) for more information on the fields of each entry.

These entries form a single, rotary hunt sequence; the last field on each line is the label of the next line. The next-label field for the last line shown points back to the first line in the sequence. The object of the hunt sequence is to link a range of line speeds. If you see garbage characters instead of a clear login prompt, press the <Esc> key to force getty to step to the next entry in the sequence. The hunt continues until the baud rate of the line matches the speed of the user's terminal.

The flag fields shown have the following meanings:

B300-B19200

The baud rate of the line.

HUPCL

Hang up on close.

SANE

A composite flag that stands for a set of normal line characteristics.

IXANY

Allow any character to restart output. If this flag is not specified, only DC1 <Ctrl-Q> restarts output.

TAB3

Send tabs to the terminal as spaces.
For a description of all getty flags, see termio(7).


Next | Prev | Up | Top | Contents | Index