diff options
author | obrien <obrien@FreeBSD.org> | 1998-10-31 05:27:02 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1998-10-31 05:27:02 +0000 |
commit | fa87de8247e8a901afbdb4b1bdbb229424f7e3cb (patch) | |
tree | 4c78b73f197b3d0e6d9866982d8cdcc121d324a1 | |
parent | 27a325f1057840588fa18b5c5bc897228707910b (diff) | |
download | FreeBSD-src-fa87de8247e8a901afbdb4b1bdbb229424f7e3cb.zip FreeBSD-src-fa87de8247e8a901afbdb4b1bdbb229424f7e3cb.tar.gz |
Backout rev 1.175.
-rw-r--r-- | etc/MAKEDEV | 36 | ||||
-rw-r--r-- | etc/etc.i386/MAKEDEV | 36 |
2 files changed, 32 insertions, 40 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 4469fcb..9c722ff 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -473,26 +473,22 @@ ccd*) umask $disk_umask name=ccd blk=21; chr=74 - 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 + 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 umask 77 ;; diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV index 4469fcb..9c722ff 100644 --- a/etc/etc.i386/MAKEDEV +++ b/etc/etc.i386/MAKEDEV @@ -473,26 +473,22 @@ ccd*) umask $disk_umask name=ccd blk=21; chr=74 - 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 + 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 umask 77 ;; |