summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-05-14 00:11:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-05-14 00:11:08 +0000
commita2d3093fc4c38f5a38353dd36ad2803bb3a7ce9f (patch)
tree1fe78206ade77b29c645282333a37be750a2736a /etc
parent67ab1adff33a655a9bee66c359e64dc91a81b384 (diff)
created ramdisk and rd
Diffstat (limited to 'etc')
-rw-r--r--etc/etc.sparc/MAKEDEV20
1 files changed, 18 insertions, 2 deletions
diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV
index 727eaa6cf04..850cce9c4d2 100644
--- a/etc/etc.sparc/MAKEDEV
+++ b/etc/etc.sparc/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.26 1997/05/13 05:34:58 millert Exp $
+# $OpenBSD: MAKEDEV,v 1.27 1997/05/14 00:11:07 deraadt Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -48,6 +48,7 @@
# uk* unknown SCSI
# ss* SCSI scanners
# xy* Xylogic 450/451 disks
+# rd* "ramdisk" pseudo-disks
# xd* Xylogic 753/7053 disks
# fd* Floppies
# vnd* "file" pseudo-disks
@@ -157,7 +158,7 @@ case $i in
all)
sh ${this} std sd0 sd1 sd2 sd3 sd4 xd0 xd1 xd2 xd3 xy0 xy1 xy2 xy3
- sh ${this} cd0 st0 st1
+ sh ${this} cd0 st0 st1 rd0
sh ${this} fd0 fdB0 fdC0 fdD0 fdE0 fdF0 fdG0 fdH0
sh ${this} uk0 uk1
sh ${this} ss0 ss1
@@ -175,6 +176,11 @@ floppy)
sh ${this} fd0 sd0 sd1
;;
+ramdisk)
+ sh ${this} std random
+ sh ${this} fd0 sd0 sd1 rd0 cd0
+ ;;
+
std)
mknod console c 0 0
mknod tty c 2 0 ; chmod 666 tty
@@ -354,6 +360,16 @@ ccd*|sd*|xd*|xy*|cd*|vnd*)
umask 77
;;
+rd*)
+ umask 2 ; unit=`expr $i : '.*d\(.*\)'`
+ mknod rd${unit}a b 17 `expr $unit '*' 16 + 0`
+ mknod rd${unit}c b 17 `expr $unit '*' 16 + 2`
+ mknod rrd${unit}a c 106 `expr $unit '*' 16 + 0`
+ mknod rrd${unit}c c 106 `expr $unit '*' 16 + 2`
+ chown root.operator rd${unit}[ac] rrd${unit}[ac]
+ chmod 640 rd${unit}[ac] rrd${unit}[ac]
+ umask 77
+ ;;
st*)
umask 2
case $i in