Fix syscall tracing.
[linux-2.6/linux-mips.git] / scripts / MAKEDEV.ide
blobfeecb99bb865be7a42e84e1401f4e3bbbf4dbf07
1 #!/bin/sh
3 # This script creates the proper /dev/ entries for IDE devices
4 # on the primary, secondary, tertiary, and quaternary interfaces.
5 # See ../Documentation/ide.txt for more information.
7 makedev () {
8 rm -f /dev/$1
9 echo mknod /dev/$1 $2 $3 $4
10 mknod /dev/$1 $2 $3 $4
11 chown root:disk /dev/$1
12 chmod 660 /dev/$1
15 makedevs () {
16 rm -f /dev/$1*
17 makedev $1 b $2 $3
18 for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
20 makedev $1$part b $2 `expr $3 + $part`
21 done
24 makedevs hda 3 0
25 makedevs hdb 3 64
26 makedevs hdc 22 0
27 makedevs hdd 22 64
28 makedevs hde 33 0
29 makedevs hdf 33 64
30 makedevs hdg 34 0
31 makedevs hdh 34 64
32 makedevs hdi 56 0
33 makedevs hdj 56 64
34 makedevs hdk 57 0
35 makedevs hdl 57 64
36 makedevs hdm 88 0
37 makedevs hdn 88 64
38 makedevs hdo 89 0
39 makedevs hdp 89 64
40 makedevs hdq 90 0
41 makedevs hdr 90 64
42 makedevs hds 91 0
43 makedevs hdt 91 64
45 for tape in 0 1 2 3 4 5 6 7
47 makedev ht$tape c 37 $tape
48 makedev nht$tape c 37 `expr $tape + 128`
49 done