mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
Bring in ccd support.
Entry to create ccd devices.
This commit is contained in:
parent
dae021db69
commit
a388db6b9e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15569
29
etc/MAKEDEV
29
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user