diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1997-02-18 16:10:27 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1997-02-18 16:10:27 +0000 |
commit | db7351d3e2a8e72fe04d5cb00938c11261ed1ae0 (patch) | |
tree | f33adfe403af60fa3fcfa79ebba8932144e6f1d1 /etc | |
parent | 9b98ced200bc2dd3773bbf7ab501516d7fe73914 (diff) |
create the device nodes for rd in a sane way.
create disklabel proto for ramdisk
Diffstat (limited to 'etc')
-rw-r--r-- | etc/etc.powerpc/MAKEDEV | 14 | ||||
-rw-r--r-- | etc/etc.powerpc/disktab | 9 |
2 files changed, 21 insertions, 2 deletions
diff --git a/etc/etc.powerpc/MAKEDEV b/etc/etc.powerpc/MAKEDEV index e42a31060ed..0271c193863 100644 --- a/etc/etc.powerpc/MAKEDEV +++ b/etc/etc.powerpc/MAKEDEV @@ -70,6 +70,7 @@ all) sh MAKEDEV sd0 sd1 sd2 sd3 st0 st1 cd0 cd1 sh MAKEDEV vnd0 vnd1 vnd2 vnd3 sh MAKEDEV ccd0 ccd1 ccd2 ccd3 + sh MAKEDEV rd0 sh MAKEDEV grf0 grf1 grf2 grf3 ttye0 sh MAKEDEV tty00 tty01 pty0 sh MAKEDEV bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 @@ -120,7 +121,6 @@ sd*|vnd*|ccd*) sd*) name=sd; blk=4; chr=13;; vnd*) name=vnd; blk=14; chr=19;; ccd*) name=ccd; blk=16; chr=20;; - rd*) name=rd; blk=17; chr=17;; esac rm -f $name$unit? r$name$unit? case $unit in @@ -321,6 +321,18 @@ tun*) chown root.wheel tun$unit ;; +rd*) + blk=17; chr=17; + umask 2 ; unit=`expr $i : '.*d\(.*\)'` + mknod rd${unit}a b ${blk} `expr $unit '*' 16 + 0` + mknod rd${unit}c b ${blk} `expr $unit '*' 16 + 2` + mknod rrd${unit}a c ${chr} `expr $unit '*' 16 + 0` + mknod rrd${unit}c c ${chr} `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 25 0 diff --git a/etc/etc.powerpc/disktab b/etc/etc.powerpc/disktab index 842d6341f6e..7431519d1ba 100644 --- a/etc/etc.powerpc/disktab +++ b/etc/etc.powerpc/disktab @@ -1,4 +1,4 @@ -# $Id: disktab,v 1.1 1996/12/21 20:41:16 rahnds Exp $ +# $Id: disktab,v 1.2 1997/02/18 16:10:25 rahnds Exp $ # # @(#)disktab 5.5 (Berkeley) 2/27/91 # @@ -17,6 +17,13 @@ # f[a-h] partition fragment sizes in bytes # + +# Leave nc=16; adjust size using: ns +rdroot|ramdiskroot|RAM-disk root FS image:\ + :ty=simulated:se#512:nc#16:nt#2:ns#128:\ + :ta=4.4BSD:oa#0:pa#4096:fa#512:ba#4096:\ + :ob#0:pb#0:oc#0:pc#4096: + # pseudo-geometry taken from rd7945 miniroot:\ :ty=winchester:ns#16:nt#7:nc#968:\ |