Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ports(1M) — SunOS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

devlinks(1M)

disks(1M)

pmadm(1M)

sacadm(1M)

tapes(1M)

ports(1M)

NAME

ports − create /dev entries and inittab entries for serial lines

SYNOPSIS

/usr/sbin/ports [ −r rootdir ]

AVAILABILITY

SUNWcsu

DESCRIPTION

The ports command creates symbolic links from /dev/term and /dev/cua to the serial-port character device files in /devices and adds new entries in /sbin/inittab for non-system ports found.  System-board ports are given alphabetic names (a, b, and on certain systems c and d) while other ports are named numerically. 

ports searches the in-kernel devinfo-node tree to find the serial devices attached to the system.  It also checks /dev/term and /dev/cua to see what symbolic links to serial devices already exist.  ports then does the following:

1.  Assigns new numbers (or letters for system-board ports) to ports that are attached to the system but do not have /dev/term and /dev/cua entries.  The numbers or letters assigned are the lowest-unused numbers or letters. 

2.  Removes dangling links: links from /dev/term and /dev/cua pointing to no-longer-existing ports. 

3.  Creates new /dev/term and /dev/cua links for new serial devices. 

4.  Invokes sacadm(1M) to make new port monitor entries for the new devices.  This is not done automatically for on-board ports; on workstations these ports are often not used for dial-in sessions, so a port-monitor for one of these ports must be created explicitly. 

If the configuration has not changed, ports exits without doing anything. 

OPTIONS

−r rootdir Cause ports to presume that the /dev/term, /dev/cua, and /devices directories are found under rootdir, not directly under /.  If this argument is specified, sacadm(1M) is not invoked, since it would update terminal administration files under /etc without regard to the rootdir.

FILES

/dev/term/n

/dev/cua/n

/etc/saf/∗

SEE ALSO

devlinks(1M), disks(1M), pmadm(1M), sacadm(1M), tapes(1M)

SunOS 5.1  —  Last change: 14 Sep 1992

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