agetty [options] port [baud_rate…] [term]
opens a tty port, prompts for a login name and invokes the /bin/login command. Normally invoked by init
agetty has several non-standard features that are useful for hardwired and for dial-in lines:
/etc/issue
or alternate
/bin/login.
/etc/gettydefs
or /etc/gettytab
port
A path name relative to /dev
. -
is specified, agetty assumes that its standard input is connected to a tty port and
that a connection to a remote user has already been established.
baud_rate,…
A comma-separated list of baud rates.
Each time agetty receives a BREAK character it advances through the list, which is treated as if it were circular.
should be specified in descending order, so that the null character (Ctrl-@) can also be used for baud-rate switching.
Optional and unnecessary for virtual terminals.
The default for serial terminals is keep the current baud rate (see --keep-baud) and
if unsuccessful then default to '9600'.
term
The value to be used for the TERM environment variable. This overrides whatever init(8) may have set, and is inherited by login and the shell. Default vt100
or linux
for a virtual terminal
-a |
/sbin/agetty 9600 ttyS1For a directly connected terminal without proper carrier-detect wiring (try this if your terminal just sleeps instead of giving you a password: prompt): /sbin/agetty -L 9600 ttyS1 vt100 For an old-style dial-in line with a 9600/2400/1200 baud modem: /sbin/agetty -mt60 ttyS1 9600,2400,1200 For a Hayes modem with a fixed 115200 bps interface to the machine (the example init string turns off modem echo and result codes, makes modem/computer DCD track modem/modem DCD, makes a DTR drop cause a disconnection, and turns on auto-answer after 1 ring): /sbin/agetty -w -I 'ATE0Q1&D2&C1S0=1\015' 115200 ttyS1
/etc/issue
or the file set with -f
) may contain escape codes to display the system name, date, time etcetera. 4 or 4{interface} |
This is \n.\o (\s \m \r) \tdisplays as: This is thingol.orcan.dk (Linux i386 1.1.9) 18:29:30