Autodetect network card and start appropriate drivers (QNX)
Print command lines necessary to start drivers:
nettrap [options] [query]
Start drivers:
nettrap [options] start
The nettrap utility scans the machine it is run on for network cards. If start is not specified, the command line that would be used to start the network drivers will be printed out. If start is specified, Net, the appropriate Net drivers, and netmap -f will be executed. This is ideal for the sysinit file on a machine booting from hard disk.
Since the nettrap utility reads and writes to I/O ports and memory, running nettrap may cause drivers and their hardware (and not just other Net.* drivers) to behave in unpredictable ways. If sensitive or hazardous equipment is controlled by the computer, avoid using the *trap trap utilities or disconnect those peripherals before using them. |
The network cards scanned for include the following hardware types:
See the usage message (use nettrap) for a definitive list of currently supported network hardware types.
The first Net driver started will be assigned logical LAN number one (-l1). The second Net driver will be started with -l2, etc. The starting logical LAN number may be made something higher than 1 by using the -l lan option. |
The nettrap utility may be run only by root. |
The standard input is unused.
Card information and -v output is written to the standard output.
In start mode, the standard output is unused.
Net, Net.*, disktrap, mousetrap, pcmciatrap, ramtrap