OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [scripts/] [MAKEDEV.ide] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#!/bin/sh
2
#
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.
6
#
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
13
}
14
 
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
19
        do
20
                makedev $1$part b $2 `expr $3 + $part`
21
        done
22
}
23
 
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
44
 
45
for tape in 0 1 2 3 4 5 6 7
46
do
47
        makedev ht$tape c 37 $tape
48
        makedev nht$tape c 37 `expr $tape + 128`
49
done

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.