Dash:
[t2-trunk.git] / misc / archive / mini-makedevs.sh
blob66085ee90bb68040ae94d10555db38e6d889a4cd
1 #!/bin/sh
3 # Script for creating a minimalistic /dev directory (needed if running a
4 # kernel without devfs support).
6 # --- T2-COPYRIGHT-NOTE-BEGIN ---
7 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
8 #
9 # T2 SDE: misc/archive/mini-makedevs.sh
10 # Copyright (C) 2004 - 2005 The T2 SDE Project
11 # Copyright (C) 1998 - 2003 ROCK Linux Project
13 # More information can be found in the files COPYING and README.
15 # This program is free software; you can redistribute it and/or modify
16 # it under the terms of the GNU General Public License as published by
17 # the Free Software Foundation; version 2 of the License. A copy of the
18 # GNU General Public License can be found in the file COPYING.
19 # --- T2-COPYRIGHT-NOTE-END ---
21 mknod mem c 1 1
22 mknod kmem c 1 2
23 mknod null c 1 3
24 mknod port c 1 4
25 mknod zero c 1 5
26 mknod core c 1 6
27 mknod full c 1 7
28 mknod random c 1 8
29 mknod urandom c 1 9
31 mknod ram0 b 1 0
32 mknod ram1 b 1 1
33 mknod ram2 b 1 2
34 mknod ram3 b 1 3
35 mknod initrd b 1 250
37 mknod ptyp0 c 2 0
38 mknod ptyp1 c 2 1
39 mknod ptyp2 c 2 2
40 mknod ptyp3 c 2 3
41 mknod ptyp4 c 2 4
42 mknod ptyp5 c 2 5
43 mknod ptyp6 c 2 6
44 mknod ptyp7 c 2 7
46 mknod fd0 b 2 0
47 mknod fd1 b 2 1
49 mknod ttyp0 c 3 0
50 mknod ttyp1 c 3 1
51 mknod ttyp2 c 3 2
52 mknod ttyp3 c 3 3
53 mknod ttyp4 c 3 4
54 mknod ttyp5 c 3 5
55 mknod ttyp6 c 3 6
56 mknod ttyp7 c 3 7
58 mknod hda b 3 0
59 mknod hda1 b 3 1
60 mknod hda2 b 3 2
61 mknod hda3 b 3 3
62 mknod hda4 b 3 4
63 mknod hda5 b 3 5
64 mknod hda6 b 3 6
65 mknod hda7 b 3 7
66 mknod hda8 b 3 8
68 mknod hdb b 3 64
69 mknod hdb1 b 3 65
70 mknod hdb2 b 3 66
71 mknod hdb3 b 3 67
72 mknod hdb4 b 3 68
73 mknod hdb5 b 3 69
74 mknod hdb6 b 3 70
75 mknod hdb7 b 3 71
76 mknod hdb8 b 3 72
78 mknod tty0 c 4 0
79 mknod tty1 c 4 1
80 mknod tty2 c 4 2
81 mknod tty3 c 4 3
82 mknod tty4 c 4 4
83 mknod tty5 c 4 5
84 mknod tty6 c 4 6
85 mknod tty7 c 4 7
87 mkdir -p vc
88 ln -sf ../tty1 vc/1
89 ln -sf ../tty2 vc/2
90 ln -sf ../tty3 vc/3
91 ln -sf ../tty4 vc/4
92 ln -sf ../tty5 vc/5
93 ln -sf ../tty6 vc/6
94 ln -sf ../tty7 vc/7
96 mknod ttyS0 c 4 64
97 mknod ttyS1 c 4 65
98 mknod ttyS2 c 4 66
99 mknod ttyS3 c 4 67
101 mknod tty c 5 0
102 mknod console c 5 1
103 mknod ptmx c 5 2
105 mknod cua0 c 5 64
106 mknod cua1 c 5 65
107 mknod cua2 c 5 66
108 mknod cua3 c 5 67
110 mknod lp0 c 6 0
111 mknod lp1 c 6 0
113 mknod vcs c 7 0
114 mknod vcs1 c 7 1
115 mknod vcs2 c 7 2
116 mknod vcs3 c 7 3
117 mknod vcs4 c 7 4
118 mknod vcs5 c 7 5
119 mknod vcs6 c 7 6
120 mknod vcs7 c 7 7
122 mknod loop0 b 7 0
123 mknod loop1 b 7 1
124 mknod loop2 b 7 2
125 mknod loop3 b 7 3
127 mknod sda b 8 0
128 mknod sda1 b 8 1
129 mknod sda2 b 8 2
130 mknod sda3 b 8 3
131 mknod sda4 b 8 4
132 mknod sda5 b 8 5
133 mknod sda6 b 8 6
134 mknod sda7 b 8 7
135 mknod sda8 b 8 8
137 mknod sdb b 8 16
138 mknod sdb1 b 8 17
139 mknod sdb2 b 8 18
140 mknod sdb3 b 8 19
141 mknod sdb4 b 8 20
142 mknod sdb5 b 8 21
143 mknod sdb6 b 8 22
144 mknod sdb7 b 8 23
145 mknod sdb8 b 8 24
147 mknod psaux c 10 1
148 mknod rtc c 10 135
149 mknod nvram c 10 144
151 mknod sr0 b 11 0
152 mknod sr1 b 11 1
154 mknod sg0 c 21 0
155 mknod sg1 c 21 1
156 mknod sg2 c 21 2
157 mknod sg3 c 21 3
159 mknod fb0 c 29 0
160 mknod fb1 c 29 32
162 mkdir -p pts
164 rm -f fd
165 ln -sf /proc/kcore core
166 ln -sf /proc/self/fd fd
167 ln -sf fd/0 stdin
168 ln -sf fd/1 stdout
169 ln -sf fd/2 stderr