STTYDEFS(8) | Maintenance Commands and Procedures | STTYDEFS(8) |
/usr/sbin/sttydefs -a ttylabel [-b] [-f final-flags] [-i initial-flags] [-n nextlabel]
/usr/sbin/sttydefs -l [ttylabel]
/usr/sbin/sttydefs -r ttylabel
sttydefs is an administrative command that maintains the line settings and hunt sequences for the system's TTY ports by making entries in, and deleting entries from the /etc/ttydefs file.
sttydefs with a -a or -r option may be invoked only by the super-user. sttydefs with -l may be invoked by any user on the system.
The following options are supported:
-a ttylabel
-b
-f final-flags
-i initial-flags
-n nextlabel
-l[ttylabel]
-r ttylabel
If successful, sttydefs will exit with a status of 0. sttydefs -l will generate the requested information and send it to standard output.
The following command lists all the entries in the ttydefs file and prints an error message for each invalid entry that is detected.
example# sttydefs -l
The following shows a command that requests information for a single label and its output:
example# sttydefs -l 9600 ------------------------------------------------------------------ 9600:9600 hupcl erase ^h:9600 sane ixany tab3 hupcl erase ^h::4800 ------------------------------------------------------------------ ttylabel: 9600 initial flags: 9600 hupcl erase ^h final flags: 9600 sane ixany tab3 hupcl erase ^h autobaud: no nextlabel: 4800
The following sequence of commands will add the labels 1200, 2400, 4800, and 9600 and put them in a circular list:
sttydefs -a 1200 -n 2400 -i 1200 -f "1200 sane" sttydefs -a 2400 -n 4800 -i 2400 -f "2400 sane" sttydefs -a 4800 -n 9600 -i 4800 -f "4800 sane" sttydefs -a 9600 -n 1200 -i 9600 -f "9600 sane"
/etc/ttydefs
September 14, 1992 | OmniOS |