URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [scripts/] [MAKEDEV.ide] - Rev 1765
Compare with Previous | Blame | View Log
#!/bin/sh## This script creates the proper /dev/ entries for IDE devices# on the primary, secondary, tertiary, and quaternary interfaces.# See ../Documentation/ide.txt for more information.#makedev () {rm -f /dev/$1echo mknod /dev/$1 $2 $3 $4mknod /dev/$1 $2 $3 $4chown root:disk /dev/$1chmod 660 /dev/$1}makedevs () {rm -f /dev/$1*makedev $1 b $2 $3for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16domakedev $1$part b $2 `expr $3 + $part`done}makedevs hda 3 0makedevs hdb 3 64makedevs hdc 22 0makedevs hdd 22 64makedevs hde 33 0makedevs hdf 33 64makedevs hdg 34 0makedevs hdh 34 64makedevs hdi 56 0makedevs hdj 56 64makedevs hdk 57 0makedevs hdl 57 64makedevs hdm 88 0makedevs hdn 88 64makedevs hdo 89 0makedevs hdp 89 64makedevs hdq 90 0makedevs hdr 90 64makedevs hds 91 0makedevs hdt 91 64for tape in 0 1 2 3 4 5 6 7domakedev ht$tape c 37 $tapemakedev nht$tape c 37 `expr $tape + 128`done
