``MAKEDEV ccd3'' is now consistant with many of the other devices in that
*ccd{0,1,2}* will be created.
This commit is contained in:
parent
35d27a0f39
commit
5b3ac95f28
38
etc/MAKEDEV
38
etc/MAKEDEV
@ -108,7 +108,7 @@
|
||||
# pci PCI configuration-space access from user mode
|
||||
# ipl ipfilter control devices (ipl, ipnat, ipstate, ipauth)
|
||||
#
|
||||
# $Id: MAKEDEV,v 1.173 1998/10/02 22:33:52 obrien Exp $
|
||||
# $Id: MAKEDEV,v 1.174 1998/10/29 22:16:29 obrien Exp $
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
|
||||
@ -473,22 +473,26 @@ ccd*)
|
||||
umask $disk_umask
|
||||
name=ccd
|
||||
blk=21; chr=74
|
||||
unit=`expr $i : '...\(.*\)'`
|
||||
case $unit in
|
||||
[0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
|
||||
for part in 0 1 2 3 4 5 6 7
|
||||
do
|
||||
minor=`dkminor 0 $unit 0 $part`
|
||||
partname=`dkitop $part`
|
||||
mknod $name$unit$partname b $blk $minor
|
||||
mknod r$name$unit$partname c $chr $minor
|
||||
done
|
||||
chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
|
||||
;;
|
||||
*)
|
||||
echo bad unit for disk in: $i
|
||||
;;
|
||||
esac
|
||||
nccd=`expr $i : '...\(.*\)'`
|
||||
unit=0
|
||||
while [ $unit -le $nccd ]; do
|
||||
case $unit in
|
||||
[0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
|
||||
for part in 0 1 2 3 4 5 6 7
|
||||
do
|
||||
minor=`dkminor 0 $unit 0 $part`
|
||||
partname=`dkitop $part`
|
||||
mknod $name$unit$partname b $blk $minor
|
||||
mknod r$name$unit$partname c $chr $minor
|
||||
done
|
||||
chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
|
||||
;;
|
||||
*)
|
||||
echo bad unit for disk in: $i
|
||||
;;
|
||||
esac
|
||||
unit=`expr $unit + 1`
|
||||
done
|
||||
umask 77
|
||||
;;
|
||||
|
||||
|
@ -108,7 +108,7 @@
|
||||
# pci PCI configuration-space access from user mode
|
||||
# ipl ipfilter control devices (ipl, ipnat, ipstate, ipauth)
|
||||
#
|
||||
# $Id: MAKEDEV,v 1.173 1998/10/02 22:33:52 obrien Exp $
|
||||
# $Id: MAKEDEV,v 1.174 1998/10/29 22:16:29 obrien Exp $
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
|
||||
@ -473,22 +473,26 @@ ccd*)
|
||||
umask $disk_umask
|
||||
name=ccd
|
||||
blk=21; chr=74
|
||||
unit=`expr $i : '...\(.*\)'`
|
||||
case $unit in
|
||||
[0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
|
||||
for part in 0 1 2 3 4 5 6 7
|
||||
do
|
||||
minor=`dkminor 0 $unit 0 $part`
|
||||
partname=`dkitop $part`
|
||||
mknod $name$unit$partname b $blk $minor
|
||||
mknod r$name$unit$partname c $chr $minor
|
||||
done
|
||||
chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
|
||||
;;
|
||||
*)
|
||||
echo bad unit for disk in: $i
|
||||
;;
|
||||
esac
|
||||
nccd=`expr $i : '...\(.*\)'`
|
||||
unit=0
|
||||
while [ $unit -le $nccd ]; do
|
||||
case $unit in
|
||||
[0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
|
||||
for part in 0 1 2 3 4 5 6 7
|
||||
do
|
||||
minor=`dkminor 0 $unit 0 $part`
|
||||
partname=`dkitop $part`
|
||||
mknod $name$unit$partname b $blk $minor
|
||||
mknod r$name$unit$partname c $chr $minor
|
||||
done
|
||||
chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
|
||||
;;
|
||||
*)
|
||||
echo bad unit for disk in: $i
|
||||
;;
|
||||
esac
|
||||
unit=`expr $unit + 1`
|
||||
done
|
||||
umask 77
|
||||
;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user