Figure 6-5 shows how to invoke agetty for use with a serial console.
Figure 6-5. /etc/inittab entry for agetty
s0:2345:respawn:/sbin/agetty -h -t 60 ttyS0 9600 vt102 |
ttyS0 refers to the serial device /dev/ttyS0.
vt102 sets the TERM environment variable to indicate that a VT100 terminal is connecting.
-h activates CTS/RTS handshaking.
-t 60 allows 60 seconds for someone to attempt to log in before the modem is hung up.