Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setport(1M) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

autoconfig(1M)

init(1M)

mknod(1M)

tty_add(1M)

inittab(4)




setport(1M) setport(1M)
NAME setport - sets the characteristics of a serial port SYNOPSIS setport -o [-s baud-rate] tty... setport -r [-s baud-rate] tty... ARGUMENTS -o Sets the port to off, which disables login sessions on the port. -r Sets the port to respawn, which enables login sessions on the port. -s baud-rate Specifies the baud rate. The default is 9600; 1200 is a common value for modems. See termio(7) for a list of valid baud rates. Note that if you run setport on an existing entry in /etc/inittab and you do not specify this option, setport changes the baud rate to 9600. tty Specifies the name of an existing serial-port device file in /dev. The value of tty can be the absolute pathname of the device file, such as /dev/ttyXX, or the name of the device file, such as ttyXX. See mknod(1M) for details about creating device files. DESCRIPTION setport adds or modifies entries for serial ports in /etc/inittab. If you specify a serial port that does not exist in /etc/inittab, setport creates the entry and sets the port to enable or disable login sessions, as desired. Because setport can create entries in /etc/inittab, you can call setport from a device-initialization script, which is called by /etc/autoconfig. If you call setport from a device-initialization script, make sure that a device file of the name specified by tty exists in /dev before setport is called. The setport command automatically runs init q, which causes the changes to take effect immediately. EXAMPLES The following command enables login sessions on /dev/tty0, the modem port, with a baud rate of 19200: setport -r -s 19200 tty0 Here is the result in /etc/inittab: January 1992 1



setport(1M) setport(1M)
00:2:respawn:/etc/getty tty0 at_19200 NOTES The setport command supersedes an earlier program, tty_add, and should be used in place of tty_add. FILES /dev/* Device files /etc/inittab File that setport updates /etc/setport Executable file SEE ALSO autoconfig(1M), init(1M), mknod(1M), tty_add(1M) inittab(4) in A/UX Programmer's Reference 2 January 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026