{,r}cd0c's minor number was wrong; fix. Make all device nodes for
'cd', just like for 'sd', 'vnd', and 'ccd'.
This commit is contained in:
parent
bf7ab63c97
commit
c893f3f107
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh -
|
||||
# $NetBSD: MAKEDEV,v 1.8 1996/03/11 19:21:37 cgd Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.9 1996/06/18 00:35:43 cgd Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
|
@ -111,12 +111,13 @@ fd)
|
|||
chmod 666 fd/*
|
||||
;;
|
||||
|
||||
sd*|vnd*|ccd*)
|
||||
cd*|sd*|vnd*|ccd*)
|
||||
umask 2 ; unit=`expr $i : '.*d\(.*\)'`
|
||||
case $i in
|
||||
sd*) name=sd; blk=8; chr=8;;
|
||||
vnd*) name=vnd; blk=9; chr=9;;
|
||||
ccd*) name=ccd; blk=7; chr=27;;
|
||||
cd*) name=cd; blk=3; chr=13;;
|
||||
sd*) name=sd; blk=8; chr=8;;
|
||||
vnd*) name=vnd; blk=9; chr=9;;
|
||||
ccd*) name=ccd; blk=7; chr=27;;
|
||||
esac
|
||||
rm -f $name$unit? r$name$unit?
|
||||
mknod ${name}${unit}a b $blk `expr $unit '*' 8 + 0`
|
||||
|
@ -218,21 +219,6 @@ ch*)
|
|||
umask 77
|
||||
;;
|
||||
|
||||
cd*)
|
||||
umask 2 ; unit=`expr $i : '..\(.*\)'`
|
||||
case $i in
|
||||
cd*) name=cd; blk=3; chr=13;;
|
||||
esac
|
||||
rm -f $name$unit? r$name$unit?
|
||||
mknod ${name}${unit}a b $blk `expr $unit '*' 8 + 0`
|
||||
mknod ${name}${unit}c b $blk `expr $unit '*' 8 + 3`
|
||||
mknod r${name}${unit}a c $chr `expr $unit '*' 8 + 0`
|
||||
mknod r${name}${unit}c c $chr `expr $unit '*' 8 + 3`
|
||||
chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
|
||||
chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h]
|
||||
umask 77
|
||||
;;
|
||||
|
||||
bpf*)
|
||||
unit=`expr $i : 'bpf\(.*\)'`
|
||||
rm -f bpf$unit
|
||||
|
|
Loading…
Reference in New Issue