summaryrefslogtreecommitdiff
path: root/etc/etc.sun3
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.sun3
parentd64d6ea66acb951531c0a552d6ab3876ed593580 (diff)
Make svnd nodes too, please test this on your port
Diffstat (limited to 'etc/etc.sun3')
-rw-r--r--etc/etc.sun3/MAKEDEV36
1 files changed, 33 insertions, 3 deletions
diff --git a/etc/etc.sun3/MAKEDEV b/etc/etc.sun3/MAKEDEV
index 03005768d1d..fc4c9cc6aa0 100644
--- a/etc/etc.sun3/MAKEDEV
+++ b/etc/etc.sun3/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.15 1997/05/13 05:34:59 millert Exp $
+# $OpenBSD: MAKEDEV,v 1.16 1997/05/14 15:41:22 niklas Exp $
# $NetBSD: MAKEDEV,v 1.8 1996/03/03 16:54:17 thorpej Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -159,12 +159,11 @@ pty*)
done
;;
-cd*|sd*|xy*|vnd*|ccd*|rd*)
+cd*|sd*|xy*|ccd*|rd*)
case $arg in
cd*) name=cd; blk=18; chr=58;;
sd*) name=sd; blk=7; chr=17;;
xy*) name=xy; blk=3; chr=9 ;;
- vnd*) name=vnd; blk=5; chr=19;;
ccd*) name=ccd; blk=9; chr=33;;
rd*) name=rd; blk=13; chr=52;;
esac
@@ -185,6 +184,37 @@ cd*|sd*|xy*|vnd*|ccd*|rd*)
done
;;
+vnd*)
+ umask 2 ; unit=`expr $i : 'vnd\(.*\)'`
+ for name in vnd svnd; do
+ blk=5; chr=19;
+ 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 '*' 8 + $off + 0`
+ mknod ${name}${unit}b b $blk `expr $unit '*' 8 + $off + 1`
+ mknod ${name}${unit}c b $blk `expr $unit '*' 8 + $off + 2`
+ mknod ${name}${unit}d b $blk `expr $unit '*' 8 + $off + 3`
+ mknod ${name}${unit}e b $blk `expr $unit '*' 8 + $off + 4`
+ mknod ${name}${unit}f b $blk `expr $unit '*' 8 + $off + 5`
+ mknod ${name}${unit}g b $blk `expr $unit '*' 8 + $off + 6`
+ mknod ${name}${unit}h b $blk `expr $unit '*' 8 + $off + 7`
+ mknod r${name}${unit}a c $chr `expr $unit '*' 8 + $off + 0`
+ mknod r${name}${unit}b c $chr `expr $unit '*' 8 + $off + 1`
+ mknod r${name}${unit}c c $chr `expr $unit '*' 8 + $off + 2`
+ mknod r${name}${unit}d c $chr `expr $unit '*' 8 + $off + 3`
+ mknod r${name}${unit}e c $chr `expr $unit '*' 8 + $off + 4`
+ mknod r${name}${unit}f c $chr `expr $unit '*' 8 + $off + 5`
+ mknod r${name}${unit}g c $chr `expr $unit '*' 8 + $off + 6`
+ mknod r${name}${unit}h c $chr `expr $unit '*' 8 + $off + 7`
+ chown root.operator ${name}${unit}[a-h] r${name}${unit}[a-h]
+ chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h]
+ done
+ umask 77
+ ;;
+
st*)
name=st; blk=11; chr=18;
offset=`expr $unit \* 16`;