Browse Source

Add ramdisk support for pmax; untested but compiles

OPENBSD_2_5
millert 26 years ago
parent
commit
d99cf3e5db
2 changed files with 22 additions and 1 deletions
  1. +17
    -1
      src/etc/etc.pmax/MAKEDEV
  2. +5
    -0
      src/etc/etc.pmax/disktab

+ 17
- 1
src/etc/etc.pmax/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: MAKEDEV,v 1.26 1998/10/15 21:24:53 art Exp $
# $OpenBSD: MAKEDEV,v 1.27 1998/11/09 05:39:59 millert Exp $
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
#
@ -119,6 +119,11 @@ all)
sh $this fb0 fb1 fb2
;;
raminst)
sh $this std
sh $this rz0 rz1 rz2 rz3 rz4 tz0 tz1 rd0 pty0
sh $this fb0 fb1 fb2
std)
mknod console c 0 0
mknod drum c 1 0 ; chmod 640 drum ; chown root.kmem drum
@ -291,6 +296,17 @@ vnd*)
umask 77
;;
rd*)
umask 2 ; unit=`expr $i : '.*d\(.*\)'`
mknod rd${unit}a b 25 `expr $unit '*' 16 + 0`
mknod rd${unit}c b 25 `expr $unit '*' 16 + 2`
mknod rrd${unit}a c 92 `expr $unit '*' 16 + 0`
mknod rrd${unit}c c 92 `expr $unit '*' 16 + 2`
chown root.operator rd${unit}[ac] rrd${unit}[ac]
chmod 640 rd${unit}[ac] rrd${unit}[ac]
umask 77
;;
dc*)
unit=`expr $i : 'dc\(.*\)'`
case $unit in


+ 5
- 0
src/etc/etc.pmax/disktab View File

@ -37,6 +37,11 @@
# four times `a' while `c' is always the entire disk. The
# sum of `d', `e', and `f' is equal to `g' which is everything else.
rdroot|ramdiskroot|RAM-disk root FS image:\
:ty=simulated:se#512:nc#24:nt#2:ns#128:\
:ta=4.2BSD:oa#0:pa#6144:fa#512:ba#4096\
:ob#0:pb#0:oc#0:pc#6144:
simpleroot:\
:ty=winchester:\
:dt=SCSI:\


Loading…
Cancel
Save