summaryrefslogtreecommitdiff
path: root/etc/etc.powerpc/MAKEDEV
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>1997-02-18 16:10:27 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>1997-02-18 16:10:27 +0000
commitdb7351d3e2a8e72fe04d5cb00938c11261ed1ae0 (patch)
treef33adfe403af60fa3fcfa79ebba8932144e6f1d1 /etc/etc.powerpc/MAKEDEV
parent9b98ced200bc2dd3773bbf7ab501516d7fe73914 (diff)
create the device nodes for rd in a sane way.
create disklabel proto for ramdisk
Diffstat (limited to 'etc/etc.powerpc/MAKEDEV')
-rw-r--r--etc/etc.powerpc/MAKEDEV14
1 files changed, 13 insertions, 1 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