diff options
author | asami <asami@FreeBSD.org> | 1996-05-03 05:37:34 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1996-05-03 05:37:34 +0000 |
commit | 415685ca3c4413d7c54a21d8925db3602c73faa7 (patch) | |
tree | cead2807b17d6192fea5ce15e0ecef0548ca8b22 /etc/MAKEDEV | |
parent | 52ac8906863fe3a4f5edddb0b9bddfa23961bb5c (diff) | |
download | FreeBSD-src-415685ca3c4413d7c54a21d8925db3602c73faa7.zip FreeBSD-src-415685ca3c4413d7c54a21d8925db3602c73faa7.tar.gz |
Bring in ccd support.
Entry to create ccd devices.
Diffstat (limited to 'etc/MAKEDEV')
-rw-r--r-- | etc/MAKEDEV | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 38a7170..3d121c0 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -99,7 +99,7 @@ # labpc* National Instrument's Lab-PC and LAB-PC+ # perfmon CPU performance-monitoring counters # -# $Id: MAKEDEV,v 1.116 1996/03/26 21:04:54 wollman Exp $ +# $Id: MAKEDEV,v 1.117 1996/05/02 09:15:57 jkh Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin: @@ -434,6 +434,33 @@ od*|sd*|vn*|wd*) umask 77 ;; +ccd*) + umask 37 + name=ccd + blk=21; chr=74 + unit=`expr $i : '...\(.*\)'` + case $unit in + [0-9]|[1-2][0-9]|30|31) + rm -f r${name}${unit}.ctl + mknod r${name}${unit}.ctl c $chr `expr $unit '*' 8 + $scsictl ` + chmod 600 r${name}${unit}.ctl + 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 + ;; + *) + echo bad unit for disk in: $i + ;; + esac + umask 77 + ;; + uk*) unit=`expr $i : 'uk\(.*\)'` rm -f uk$unit |