|
|
The /etc/gettydefs file has sets of entries for the dial-up lines and terminal lines. These different sets correspond to line-mode settings in /etc/inittab. The init program passes the line mode as an argument to getty.
You can edit /etc/gettydefs to add new terminal settings or to change existing ones. For example, the settings for terminal lines might look like the following:
4 # B2400 HUPCL # B2400 CS8 SANE HUPCL TAB3 ECHOE IXANY #\r\n@!login: # 55 # B4800 HUPCL # B4800 CS8 SANE HUPCL TAB3 ECHOE IXANY #\r\n@!login: # 6
6 # B9600 HUPCL # B9600 CS8 SANE HUPCL TAB3 ECHOE IXANY #\r\n@!login: # 4
4 # B1200 HUPCL # B1200 CS8 SANE HUPCL TAB3 ECHOE IXANY #\r\n@|login:# 55 # B4800 HUPCL # B4800 CS8 SANE HUPCL TAB3 ECHOE IXANY #\r\n@|login:# 6
6 # B9600 HUPCL # B9600 CS8 SANE HUPCL TAB3 ECHOE IXANY #\r\n@!login:# 4
You can also add additional terminal line settings to gettydefs. Flags and permissible values for terminal settings are listed on the termio(M) manual page.
When you add a new entry, be sure that the groups of entries in gettydefs form a closed set, so the next-label field of the last entry directs getty back to the first entry in the group.
The following example adds an entry for a speed of 300bps to the previous gettydefs example:
4 # B1200 HUPCL # B1200 CS8 SANE HUPCL TAB3 ECHOE IXANY #\r\n@!login: # 55 # B4800 HUPCL # B4800 CS8 SANE HUPCL TAB3 ECHOE IXANY #\r\n@!login: # 6
6 # B9600 HUPCL # B9600 CS8 SANE HUPCL TAB3 ECHOE IXANY #\r\n@!login: # 7
7 # B300 HUPCL # B300 CS8 SANE HUPCL TAB3 ECHOE IXANY #\r\n@!login: # 4