Commit | Line | Data |
---|---|---|
b42074ab CL |
1 | .\" Copyright (c) 1983, 1991 Regents of the University of California. |
2 | .\" All rights reserved. | |
e8867c20 | 3 | .\" |
af359dea C |
4 | .\" Redistribution and use in source and binary forms, with or without |
5 | .\" modification, are permitted provided that the following conditions | |
6 | .\" are met: | |
7 | .\" 1. Redistributions of source code must retain the above copyright | |
8 | .\" notice, this list of conditions and the following disclaimer. | |
9 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
10 | .\" notice, this list of conditions and the following disclaimer in the | |
11 | .\" documentation and/or other materials provided with the distribution. | |
12 | .\" 3. All advertising materials mentioning features or use of this software | |
13 | .\" must display the following acknowledgement: | |
14 | .\" This product includes software developed by the University of | |
15 | .\" California, Berkeley and its contributors. | |
16 | .\" 4. Neither the name of the University nor the names of its contributors | |
17 | .\" may be used to endorse or promote products derived from this software | |
18 | .\" without specific prior written permission. | |
e8867c20 | 19 | .\" |
af359dea C |
20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
30 | .\" SUCH DAMAGE. | |
b42074ab | 31 | .\" |
af359dea C |
32 | .\" @(#)makedev.8 6.3 (Berkeley) 3/16/91 |
33 | .\" | |
34 | .Dd March 16, 1991 | |
b42074ab CL |
35 | .Dt MAKEDEV 8 |
36 | .Os BSD 4.2 | |
37 | .Sh NAME | |
38 | .Nm makedev | |
39 | .Nd make system special files | |
40 | .Sh SYNOPSIS | |
41 | .Nm MAKEDEV | |
42 | .Ar device ... | |
43 | .Sh DESCRIPTION | |
44 | .Nm MAKEDEV | |
e8867c20 KM |
45 | is a shell script normally used to install |
46 | special files. It resides in the | |
b42074ab | 47 | .Pa /dev |
e8867c20 KM |
48 | directory, as this is the normal location of special files. |
49 | Arguments to | |
b42074ab | 50 | .Nm MAKEDEV |
e8867c20 | 51 | are usually of the form |
b42074ab | 52 | .Ar device-name Ns Sy \&? |
e8867c20 | 53 | where |
b42074ab | 54 | .Ar device-name |
e8867c20 | 55 | is one of the supported devices listed in section 4 of the |
b42074ab CL |
56 | manual and |
57 | .Dq Sy \&? | |
58 | is a logical unit number (0-9). A few | |
e8867c20 KM |
59 | special arguments create assorted collections of devices and are |
60 | listed below. | |
b42074ab CL |
61 | .Bl -tag -width Ds |
62 | .It Sy std | |
e8867c20 | 63 | Create the |
b42074ab CL |
64 | .Em standard |
65 | devices for the system; for example the standard | |
66 | .Tn UNIX | |
67 | devices | |
68 | .Pa /dev/console and /dev/tty; | |
69 | the standard hardware dependent devices, | |
70 | for example in the VAX family | |
71 | the | |
72 | .Tn VAX-11/780 | |
73 | console floppy device, | |
74 | .Pa /dev/floppy , | |
75 | and | |
76 | .Tn VAX-11/750 | |
77 | and | |
78 | .Tn VAX-11/730 | |
79 | console cassette device(s), | |
80 | .Pa /dev/tu? | |
81 | devices would be made for the appropriate system. | |
82 | .It Sy local | |
e8867c20 KM |
83 | Create those devices specific to the local site. This |
84 | request causes the shell file | |
b42074ab | 85 | .Pa /dev/MAKEDEV.local |
e8867c20 | 86 | to be executed. Site specific commands, such as those |
b42074ab CL |
87 | used to setup dialup lines as |
88 | .Pa ttyd? | |
89 | should be included | |
e8867c20 | 90 | in this file. |
b42074ab CL |
91 | .El |
92 | .Pp | |
e8867c20 | 93 | Since all devices are created using |
b42074ab | 94 | .Xr mknod 8 , |
e8867c20 | 95 | this shell script is useful only to the super-user. |
b42074ab | 96 | .Sh DIAGNOSTICS |
e8867c20 | 97 | Either self-explanatory, or generated by one of the programs |
b42074ab CL |
98 | called from the script. Use |
99 | .Ql sh -x MAKEDEV | |
100 | in case of | |
e8867c20 | 101 | trouble. |
b42074ab CL |
102 | .Sh SEE ALSO |
103 | .Xr intro 4 , | |
104 | .Xr config 8 , | |
105 | .Xr mknod 8 | |
106 | .Sh HISTORY | |
107 | The | |
108 | .Nm | |
109 | command appeared in | |
110 | .Bx 4.2 . |