summaryrefslogtreecommitdiff
path: root/etc/etc.arc/MAKEDEV
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1997-05-18 13:42:40 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1997-05-18 13:42:40 +0000
commit682086e3b2a5dfa0f09c911f6e3651bcd5cb2aca (patch)
tree240e2647221fbc16a4b6561dfad9466c07b795a8 /etc/etc.arc/MAKEDEV
parentd2847b39ba5d0c9dedabbbe49582bb324da7ee75 (diff)
ARC ramdisk install stuff
Diffstat (limited to 'etc/etc.arc/MAKEDEV')
-rw-r--r--etc/etc.arc/MAKEDEV19
1 files changed, 17 insertions, 2 deletions
diff --git a/etc/etc.arc/MAKEDEV b/etc/etc.arc/MAKEDEV
index addf9ce23e1..0b35eb3b20b 100644
--- a/etc/etc.arc/MAKEDEV
+++ b/etc/etc.arc/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.17 1997/05/14 18:31:15 niklas Exp $
+# $OpenBSD: MAKEDEV,v 1.18 1997/05/18 13:42:37 pefo Exp $
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
#
@@ -73,6 +73,11 @@ all)
sh MAKEDEV ttyC0 lpt0 pms0 random bpf0 local
;;
+ramdisk)
+ sh MAKEDEV std fd0 wd0 wd1 wd2 wd3 sd0 sd1 sd2 st0 acd0 cd0
+ sh MAKEDEV tty00 tty01 ttyC0 lpt0 random rd0
+ ;;
+
std)
mknod console c 0 0
mknod drum c 1 0 ; chmod 640 drum ; chown root.kmem drum
@@ -160,7 +165,17 @@ bpf*|tun*)
chown root.wheel $name$unit
;;
-# ;;
+rd*)
+ umask 2 ; unit=`expr $i : '.*d\(.*\)'`
+ mknod rd${unit}a b 8 `expr $unit '*' 16 + 0`
+ mknod rd${unit}c b 8 `expr $unit '*' 16 + 2`
+ mknod rrd${unit}a c 22 `expr $unit '*' 16 + 0`
+ mknod rrd${unit}c c 22 `expr $unit '*' 16 + 2`
+ chown root.operator rd${unit}[ac] rrd${unit}[ac]
+ chmod 640 rd${unit}[ac] rrd${unit}[ac]
+ umask 77
+ ;;
+
#lkm)
# rm -f lkm
# mknod lkm c 112 0