diff options
author | cwt <cwt@FreeBSD.org> | 1998-02-09 08:41:49 +0000 |
---|---|---|
committer | cwt <cwt@FreeBSD.org> | 1998-02-09 08:41:49 +0000 |
commit | 7674194b7a8c8c35b00cd2e677775d15eda336a0 (patch) | |
tree | d5ceb37a0416d55b9f1c56a3cad16abe5fe24c6e /etc/MAKEDEV | |
parent | d7a6ab28035779065026b70dca440892d819c0bc (diff) | |
download | FreeBSD-src-7674194b7a8c8c35b00cd2e677775d15eda336a0.zip FreeBSD-src-7674194b7a8c8c35b00cd2e677775d15eda336a0.tar.gz |
Adjustments for ccd devices:
1) Resulting special files now in group operator. (Reviewed by bde)
2) Use $disk_umask when creating ccd device specials. (Suggested by
bde)
3) No longer create rccd{n}.ctl; ccd's are not necessarily scsi.
(Suggested by bde)
4) No need to split short lines. (Suggested by bde)
Diffstat (limited to 'etc/MAKEDEV')
-rw-r--r-- | etc/MAKEDEV | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 7785809..a0566f1 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -107,7 +107,7 @@ # perfmon CPU performance-monitoring counters # pci PCI configuration-space access from user mode # -# $Id: MAKEDEV,v 1.150 1998/01/16 22:12:49 pst Exp $ +# $Id: MAKEDEV,v 1.151 1998/01/22 21:26:22 jkh Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH @@ -472,24 +472,20 @@ od*|sd*|vn*|wd*|wfd*) ;; ccd*) - umask 37 + 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]) - minor=`dkminor 0 $unit 0 0` - mknod r${name}${unit}.ctl c $chr $(($minor | $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 + 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 |