|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/sh - |
|
|
|
# $OpenBSD: MAKEDEV,v 1.4 1996/03/28 18:24:36 niklas Exp $ |
|
|
|
# $NetBSD: MAKEDEV,v 1.8 1996/03/11 19:21:37 cgd Exp $ |
|
|
|
# $OpenBSD: MAKEDEV,v 1.5 1996/06/23 10:07:24 deraadt Exp $ |
|
|
|
# $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $ |
|
|
|
# |
|
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
|
# All rights reserved. |
|
|
@ -112,12 +112,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` |
|
|
@ -219,21 +220,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 |
|
|
|