macro and text revision (-mdoc version 3)
[unix-history] / usr / src / share / man / man8 / makedev.8
CommitLineData
b42074ab
CL
1.\" Copyright (c) 1983, 1991 Regents of the University of California.
2.\" All rights reserved.
e8867c20 3.\"
b42074ab 4.\" %sccs.include.redist.man%
e8867c20 5.\"
b42074ab
CL
6.\" @(#)makedev.8 6.3 (Berkeley) %G%
7.\"
8.Dd
9.Dt MAKEDEV 8
10.Os BSD 4.2
11.Sh NAME
12.Nm makedev
13.Nd make system special files
14.Sh SYNOPSIS
15.Nm MAKEDEV
16.Ar device ...
17.Sh DESCRIPTION
18.Nm MAKEDEV
e8867c20
KM
19is a shell script normally used to install
20special files. It resides in the
b42074ab 21.Pa /dev
e8867c20
KM
22directory, as this is the normal location of special files.
23Arguments to
b42074ab 24.Nm MAKEDEV
e8867c20 25are usually of the form
b42074ab 26.Ar device-name Ns Sy \&?
e8867c20 27where
b42074ab 28.Ar device-name
e8867c20 29is one of the supported devices listed in section 4 of the
b42074ab
CL
30manual and
31.Dq Sy \&?
32is a logical unit number (0-9). A few
e8867c20
KM
33special arguments create assorted collections of devices and are
34listed below.
b42074ab
CL
35.Bl -tag -width Ds
36.It Sy std
e8867c20 37Create the
b42074ab
CL
38.Em standard
39devices for the system; for example the standard
40.Tn UNIX
41devices
42.Pa /dev/console and /dev/tty;
43the standard hardware dependent devices,
44for example in the VAX family
45the
46.Tn VAX-11/780
47console floppy device,
48.Pa /dev/floppy ,
49and
50.Tn VAX-11/750
51and
52.Tn VAX-11/730
53console cassette device(s),
54.Pa /dev/tu?
55devices would be made for the appropriate system.
56.It Sy local
e8867c20
KM
57Create those devices specific to the local site. This
58request causes the shell file
b42074ab 59.Pa /dev/MAKEDEV.local
e8867c20 60to be executed. Site specific commands, such as those
b42074ab
CL
61used to setup dialup lines as
62.Pa ttyd?
63should be included
e8867c20 64in this file.
b42074ab
CL
65.El
66.Pp
e8867c20 67Since all devices are created using
b42074ab 68.Xr mknod 8 ,
e8867c20 69this shell script is useful only to the super-user.
b42074ab 70.Sh DIAGNOSTICS
e8867c20 71Either self-explanatory, or generated by one of the programs
b42074ab
CL
72called from the script. Use
73.Ql sh -x MAKEDEV
74in case of
e8867c20 75trouble.
b42074ab
CL
76.Sh SEE ALSO
77.Xr intro 4 ,
78.Xr config 8 ,
79.Xr mknod 8
80.Sh HISTORY
81The
82.Nm
83command appeared in
84.Bx 4.2 .