summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-02-06 10:02:13 +0000
committerderaadt <deraadt@openbsd.org>1997-02-06 10:02:13 +0000
commit90cc2fdfd4cc202d6382186826e3090aa100f06a (patch)
treeba62d4333fe8667e5d8a7bcd2143695e02554326
parentCosmetic change: "device not configured" -> "Device not configured" (diff)
downloadwireguard-openbsd-90cc2fdfd4cc202d6382186826e3090aa100f06a.tar.xz
wireguard-openbsd-90cc2fdfd4cc202d6382186826e3090aa100f06a.zip
make rd device. only make a & c partitions raw & block
-rw-r--r--etc/etc.i386/MAKEDEV12
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV
index 99f3e73d89b..5bec0ea53fd 100644
--- a/etc/etc.i386/MAKEDEV
+++ b/etc/etc.i386/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.35 1996/12/14 18:23:57 millert Exp $
+# $OpenBSD: MAKEDEV,v 1.36 1997/02/06 10:02:13 deraadt Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -159,10 +159,12 @@ wt*)
rd*)
umask 2 ; unit=`expr $i : '.*d\(.*\)'`
- mknod rd${unit} b 17 $unit
-# mknod rrd${unit} c 9 $unit
- chown root.operator rd${unit} rrd${unit}
- chmod 640 rd${unit} rrd${unit}
+ mknod rd${unit}a b 17 `expr $unit '*' 16 + 0`
+ mknod rd${unit}c b 17 `expr $unit '*' 16 + 2`
+ mknod rrd${unit}a c 47 `expr $unit '*' 16 + 0`
+ mknod rrd${unit}c c 47 `expr $unit '*' 16 + 2`
+ chown root.operator rd${unit}[ac] rrd${unit}[ac]
+ chmod 640 rd${unit}[ac] rrd${unit}[ac]
umask 77
;;