xref: /csrg-svn/share/man/man8/makedev.8 (revision 47467)
1*47467Scael.\" Copyright (c) 1983, 1991 Regents of the University of California.
2*47467Scael.\" All rights reserved.
318986Smckusick.\"
4*47467Scael.\" %sccs.include.redist.man%
518986Smckusick.\"
6*47467Scael.\"     @(#)makedev.8	6.3 (Berkeley) 03/16/91
7*47467Scael.\"
8*47467Scael.Dd
9*47467Scael.Dt MAKEDEV 8
10*47467Scael.Os BSD 4.2
11*47467Scael.Sh NAME
12*47467Scael.Nm makedev
13*47467Scael.Nd make system special files
14*47467Scael.Sh SYNOPSIS
15*47467Scael.Nm MAKEDEV
16*47467Scael.Ar device ...
17*47467Scael.Sh DESCRIPTION
18*47467Scael.Nm MAKEDEV
1918986Smckusickis a shell script normally used to install
2018986Smckusickspecial files.  It resides in the
21*47467Scael.Pa /dev
2218986Smckusickdirectory, as this is the normal location of special files.
2318986SmckusickArguments to
24*47467Scael.Nm MAKEDEV
2518986Smckusickare usually of the form
26*47467Scael.Ar device-name Ns Sy \&?
2718986Smckusickwhere
28*47467Scael.Ar device-name
2918986Smckusickis one of the supported devices listed in section 4 of the
30*47467Scaelmanual and
31*47467Scael.Dq Sy \&?
32*47467Scaelis a logical unit number (0-9).  A few
3318986Smckusickspecial arguments create assorted collections of devices and are
3418986Smckusicklisted below.
35*47467Scael.Bl -tag -width Ds
36*47467Scael.It Sy std
3718986SmckusickCreate the
38*47467Scael.Em standard
39*47467Scaeldevices for the system; for example the standard
40*47467Scael.Tn UNIX
41*47467Scaeldevices
42*47467Scael.Pa /dev/console and /dev/tty;
43*47467Scaelthe standard hardware dependent devices,
44*47467Scaelfor example in the VAX family
45*47467Scaelthe
46*47467Scael.Tn VAX-11/780
47*47467Scaelconsole floppy device,
48*47467Scael.Pa /dev/floppy ,
49*47467Scaeland
50*47467Scael.Tn VAX-11/750
51*47467Scaeland
52*47467Scael.Tn VAX-11/730
53*47467Scaelconsole cassette device(s),
54*47467Scael.Pa /dev/tu?
55*47467Scaeldevices would be made for the appropriate system.
56*47467Scael.It Sy local
5718986SmckusickCreate those devices specific to the local site.  This
5818986Smckusickrequest causes the shell file
59*47467Scael.Pa /dev/MAKEDEV.local
6018986Smckusickto be executed.  Site specific commands, such as those
61*47467Scaelused to setup dialup lines as
62*47467Scael.Pa ttyd?
63*47467Scaelshould be included
6418986Smckusickin this file.
65*47467Scael.El
66*47467Scael.Pp
6718986SmckusickSince all devices are created using
68*47467Scael.Xr mknod 8 ,
6918986Smckusickthis shell script is useful only to the super-user.
70*47467Scael.Sh DIAGNOSTICS
7118986SmckusickEither self-explanatory, or generated by one of the programs
72*47467Scaelcalled from the script.  Use
73*47467Scael.Ql sh -x MAKEDEV
74*47467Scaelin case of
7518986Smckusicktrouble.
76*47467Scael.Sh SEE ALSO
77*47467Scael.Xr intro 4 ,
78*47467Scael.Xr config 8 ,
79*47467Scael.Xr mknod 8
80*47467Scael.Sh HISTORY
81*47467ScaelThe
82*47467Scael.Nm
83*47467Scaelcommand appeared in
84*47467Scael.Bx 4.2 .
85