From 5b3ac95f28253ff400f8aa71bbd279106e18a465 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Fri, 30 Oct 1998 06:02:48 +0000 Subject: [PATCH] ``MAKEDEV ccd3'' is now consistant with many of the other devices in that *ccd{0,1,2}* will be created. --- etc/MAKEDEV | 38 +++++++++++++++++++++----------------- etc/etc.i386/MAKEDEV | 38 +++++++++++++++++++++----------------- 2 files changed, 42 insertions(+), 34 deletions(-) diff --git a/etc/MAKEDEV b/etc/MAKEDEV index d600b066a16a..4469fcb494ab 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 ;; diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV index d600b066a16a..4469fcb494ab 100644 --- a/etc/etc.i386/MAKEDEV +++ b/etc/etc.i386/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 ;;