DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Adding serial terminals

Changing entries in /etc/gettydefs

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: # 5

5 # 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


This example can be edited so that the first speed that getty attempts is 1200bps:
4 # B1200 HUPCL # B1200 CS8 SANE HUPCL TAB3 ECHOE IXANY #\r\n@|login:# 5

5 # 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: # 5

5 # 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


NOTE: A blank line must separate each entry in /etc/gettydefs.


Next topic: Checking terminal settings
Previous topic: Changing default terminal line characteristics

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005