summaryrefslogtreecommitdiff
path: root/etc/etc.wgrisc
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-05-14 15:41:27 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-05-14 15:41:27 +0000
commit608c5080a0beb136d4774f197f26ffe86af9af29 (patch)
treeec8f76f9df3daccaadc63d18fbc57dfb21a6e398 /etc/etc.wgrisc
parentd64d6ea66acb951531c0a552d6ab3876ed593580 (diff)
Make svnd nodes too, please test this on your port
Diffstat (limited to 'etc/etc.wgrisc')
-rw-r--r--etc/etc.wgrisc/MAKEDEV52
1 files changed, 49 insertions, 3 deletions
diff --git a/etc/etc.wgrisc/MAKEDEV b/etc/etc.wgrisc/MAKEDEV
index 6010fe4f82a..0b282c3924d 100644
--- a/etc/etc.wgrisc/MAKEDEV
+++ b/etc/etc.wgrisc/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.3 1997/05/13 05:35:01 millert Exp $
+# $OpenBSD: MAKEDEV,v 1.4 1997/05/14 15:41:25 niklas Exp $
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
#
@@ -111,12 +111,11 @@ bpf*|tun*)
;;
-cd*|sd*|vnd*)
+cd*|sd*)
umask 2 ; unit=`expr $i : '..\(.*\)'`
case $i in
cd*) name=cd; blk=3; chr=8;;
sd*) name=sd; blk=0; chr=9;;
- vnd*) name=vnd; blk=2; chr=11;;
fd*) name=fd; blk=7; chr=13;;
esac
rm -f $name$unit r$name$unit
@@ -164,6 +163,53 @@ cd*|sd*|vnd*)
umask 77
;;
+vnd*)
+ umask 2 ; unit=`expr $i : 'vnd\(.*\)'`
+ for name in vnd svnd; do
+ blk=2; chr=11;
+ case $name in
+ vnd) off=0;;
+ svnd) off=128;;
+ esac
+ rm -f $name$unit? r$name$unit?
+ mknod ${name}${unit}a b $blk `expr $unit '*' 16 + $off + 0`
+ mknod ${name}${unit}b b $blk `expr $unit '*' 16 + $off + 1`
+ mknod ${name}${unit}c b $blk `expr $unit '*' 16 + $off + 2`
+ mknod ${name}${unit}d b $blk `expr $unit '*' 16 + $off + 3`
+ mknod ${name}${unit}e b $blk `expr $unit '*' 16 + $off + 4`
+ mknod ${name}${unit}f b $blk `expr $unit '*' 16 + $off + 5`
+ mknod ${name}${unit}g b $blk `expr $unit '*' 16 + $off + 6`
+ mknod ${name}${unit}h b $blk `expr $unit '*' 16 + $off + 7`
+ mknod ${name}${unit}i b $blk `expr $unit '*' 16 + $off + 8`
+ mknod ${name}${unit}j b $blk `expr $unit '*' 16 + $off + 9`
+ mknod ${name}${unit}k b $blk `expr $unit '*' 16 + $off + 10`
+ mknod ${name}${unit}l b $blk `expr $unit '*' 16 + $off + 11`
+ mknod ${name}${unit}m b $blk `expr $unit '*' 16 + $off + 12`
+ mknod ${name}${unit}n b $blk `expr $unit '*' 16 + $off + 13`
+ mknod ${name}${unit}o b $blk `expr $unit '*' 16 + $off + 14`
+ mknod ${name}${unit}p b $blk `expr $unit '*' 16 + $off + 15`
+ mknod r${name}${unit}a c $chr `expr $unit '*' 16 + $off + 0`
+ mknod r${name}${unit}b c $chr `expr $unit '*' 16 + $off + 1`
+ mknod r${name}${unit}c c $chr `expr $unit '*' 16 + $off + 2`
+ mknod r${name}${unit}d c $chr `expr $unit '*' 16 + $off + 3`
+ mknod r${name}${unit}e c $chr `expr $unit '*' 16 + $off + 4`
+ mknod r${name}${unit}f c $chr `expr $unit '*' 16 + $off + 5`
+ mknod r${name}${unit}g c $chr `expr $unit '*' 16 + $off + 6`
+ mknod r${name}${unit}h c $chr `expr $unit '*' 16 + $off + 7`
+ mknod r${name}${unit}i c $chr `expr $unit '*' 16 + $off + 8`
+ mknod r${name}${unit}j c $chr `expr $unit '*' 16 + $off + 9`
+ mknod r${name}${unit}k c $chr `expr $unit '*' 16 + $off + 10`
+ mknod r${name}${unit}l c $chr `expr $unit '*' 16 + $off + 11`
+ mknod r${name}${unit}m c $chr `expr $unit '*' 16 + $off + 12`
+ mknod r${name}${unit}n c $chr `expr $unit '*' 16 + $off + 13`
+ mknod r${name}${unit}o c $chr `expr $unit '*' 16 + $off + 14`
+ mknod r${name}${unit}p c $chr `expr $unit '*' 16 + $off + 15`
+ chown root.operator ${name}${unit}[a-p] r${name}${unit}[a-p]
+ chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p]
+ done
+ umask 77
+ ;;
+
tty*)
unit=`expr $i : '...\(.*\)'`
rm -f tty$unit cua$unit