summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>1997-02-11 15:03:40 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>1997-02-11 15:03:40 +0000
commitdce5105ed6e782dfc6da4ec2e86b3443fe036e31 (patch)
treee8f5fd1df481d27911aaba83852bff20753bf88c /etc
parent2f2c6665e9b1aca2ddc35d48800d1738233950c7 (diff)
changes to support the new disklabeled ramdisk (rd) and 1st cut at
raminst MAKEDEV list.
Diffstat (limited to 'etc')
-rw-r--r--etc/etc.mvme68k/MAKEDEV30
1 files changed, 23 insertions, 7 deletions
diff --git a/etc/etc.mvme68k/MAKEDEV b/etc/etc.mvme68k/MAKEDEV
index ee91a4ea1e1..22a90060819 100644
--- a/etc/etc.mvme68k/MAKEDEV
+++ b/etc/etc.mvme68k/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.14 1996/12/14 18:23:59 millert Exp $
+# $OpenBSD: MAKEDEV,v 1.15 1997/02/11 15:03:39 rahnds Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -33,7 +33,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $Id: MAKEDEV,v 1.14 1996/12/14 18:23:59 millert Exp $
+# $Id: MAKEDEV,v 1.15 1997/02/11 15:03:39 rahnds Exp $
#
# Device "make" file. Valid arguments:
# all makes all known devices, including local devices,
@@ -117,6 +117,20 @@ std)
mknod stderr c 21 2 ; chmod 666 stderr
;;
+raminst)
+ sh MAKEDEV std fd st0 ttya
+ sh MAKEDEV tty00 tty01 tty02 tty03
+ sh MAKEDEV sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9
+ sh MAKEDEV pty0
+ #sh MAKEDEV ccd0 ccd1 ccd2 ccd3
+ sh MAKEDEV tun0 tun1 lkm local
+ sh MAKEDEV sram0 nvram0 flash0 vmel0 vmes0
+ #sh MAKEDEV lp0 lptwo0
+ sh MAKEDEV random
+ sh MAKEDEV uk0 uk1
+ sh MAKEDEV ss0
+ ;;
+
fd)
rm -f fd/*
mkdir fd > /dev/null 2>&1
@@ -342,11 +356,13 @@ tun*)
rd*)
umask 2 ; unit=`expr $i : '.*d\(.*\)'`
- mknod rd$unit b 9 $unit
-# mknod rrd$unit b ??? `expr $unit + 16`
- mknod rd${unit}c b 9 `expr $unit + 16`
- chown root.operator rd$unit rd${unit}c
- chmod 640 rd$unit rd${unit}c
+ mknod rd${unit}a b 9 `expr $unit '*' 16 + 0`
+ mknod rd${unit}c b 9 `expr $unit '*' 16 + 2`
+ mknod rrd${unit}a c 18 `expr $unit '*' 16 + 0`
+ mknod rrd${unit}c c 18 `expr $unit '*' 16 + 2`
+ chown root.operator rd${unit}[ac] rrd${unit}[ac]
+ chmod 640 rd${unit}[ac] rrd${unit}[ac]
+ umask 77
;;
lkm)