summaryrefslogtreecommitdiffstats
path: root/etc/MAKEDEV
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-10-31 05:27:02 +0000
committerobrien <obrien@FreeBSD.org>1998-10-31 05:27:02 +0000
commitfa87de8247e8a901afbdb4b1bdbb229424f7e3cb (patch)
tree4c78b73f197b3d0e6d9866982d8cdcc121d324a1 /etc/MAKEDEV
parent27a325f1057840588fa18b5c5bc897228707910b (diff)
downloadFreeBSD-src-fa87de8247e8a901afbdb4b1bdbb229424f7e3cb.zip
FreeBSD-src-fa87de8247e8a901afbdb4b1bdbb229424f7e3cb.tar.gz
Backout rev 1.175.
Diffstat (limited to 'etc/MAKEDEV')
-rw-r--r--etc/MAKEDEV36
1 files changed, 16 insertions, 20 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
;;
OpenPOWER on IntegriCloud