Commit | Line | Data |
---|---|---|
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 |
19 | is a shell script normally used to install |
20 | special files. It resides in the | |
b42074ab | 21 | .Pa /dev |
e8867c20 KM |
22 | directory, as this is the normal location of special files. |
23 | Arguments to | |
b42074ab | 24 | .Nm MAKEDEV |
e8867c20 | 25 | are usually of the form |
b42074ab | 26 | .Ar device-name Ns Sy \&? |
e8867c20 | 27 | where |
b42074ab | 28 | .Ar device-name |
e8867c20 | 29 | is one of the supported devices listed in section 4 of the |
b42074ab CL |
30 | manual and |
31 | .Dq Sy \&? | |
32 | is a logical unit number (0-9). A few | |
e8867c20 KM |
33 | special arguments create assorted collections of devices and are |
34 | listed below. | |
b42074ab CL |
35 | .Bl -tag -width Ds |
36 | .It Sy std | |
e8867c20 | 37 | Create the |
b42074ab CL |
38 | .Em standard |
39 | devices for the system; for example the standard | |
40 | .Tn UNIX | |
41 | devices | |
42 | .Pa /dev/console and /dev/tty; | |
43 | the standard hardware dependent devices, | |
44 | for example in the VAX family | |
45 | the | |
46 | .Tn VAX-11/780 | |
47 | console floppy device, | |
48 | .Pa /dev/floppy , | |
49 | and | |
50 | .Tn VAX-11/750 | |
51 | and | |
52 | .Tn VAX-11/730 | |
53 | console cassette device(s), | |
54 | .Pa /dev/tu? | |
55 | devices would be made for the appropriate system. | |
56 | .It Sy local | |
e8867c20 KM |
57 | Create those devices specific to the local site. This |
58 | request causes the shell file | |
b42074ab | 59 | .Pa /dev/MAKEDEV.local |
e8867c20 | 60 | to be executed. Site specific commands, such as those |
b42074ab CL |
61 | used to setup dialup lines as |
62 | .Pa ttyd? | |
63 | should be included | |
e8867c20 | 64 | in this file. |
b42074ab CL |
65 | .El |
66 | .Pp | |
e8867c20 | 67 | Since all devices are created using |
b42074ab | 68 | .Xr mknod 8 , |
e8867c20 | 69 | this shell script is useful only to the super-user. |
b42074ab | 70 | .Sh DIAGNOSTICS |
e8867c20 | 71 | Either self-explanatory, or generated by one of the programs |
b42074ab CL |
72 | called from the script. Use |
73 | .Ql sh -x MAKEDEV | |
74 | in case of | |
e8867c20 | 75 | trouble. |
b42074ab CL |
76 | .Sh SEE ALSO |
77 | .Xr intro 4 , | |
78 | .Xr config 8 , | |
79 | .Xr mknod 8 | |
80 | .Sh HISTORY | |
81 | The | |
82 | .Nm | |
83 | command appeared in | |
84 | .Bx 4.2 . |