summaryrefslogtreecommitdiffstats
path: root/etc/MAKEDEV
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-10-30 06:02:48 +0000
committerobrien <obrien@FreeBSD.org>1998-10-30 06:02:48 +0000
commitdaa87e9bf9a3b4a61170e7d39e4fad0ca6c3b8e3 (patch)
tree9205c70dcbc5b216dfa8aef004c460182de15cc6 /etc/MAKEDEV
parente79dcdb69f35b4c9a8524672d1c364e750730b38 (diff)
downloadFreeBSD-src-daa87e9bf9a3b4a61170e7d39e4fad0ca6c3b8e3.zip
FreeBSD-src-daa87e9bf9a3b4a61170e7d39e4fad0ca6c3b8e3.tar.gz
``MAKEDEV ccd3'' is now consistant with many of the other devices in that
*ccd{0,1,2}* will be created.
Diffstat (limited to 'etc/MAKEDEV')
-rw-r--r--etc/MAKEDEV38
1 files changed, 21 insertions, 17 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV
index d600b06..4469fcb 100644
--- a/etc/MAKEDEV
+++ b/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
;;
OpenPOWER on IntegriCloud