summaryrefslogtreecommitdiff
path: root/etc/etc.pica/MAKEDEV
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-07-15 14:59:22 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-07-15 14:59:22 +0000
commit4a86d77349a4aa1e1ada6d019d7e2207e9c8ef55 (patch)
tree8d9ae6da78a1d3f113f5a92ff37fee946b0dcc91 /etc/etc.pica/MAKEDEV
parent86808c1792db3660ec637ca3878dbf939075b0a7 (diff)
ad rnd devices.
Diffstat (limited to 'etc/etc.pica/MAKEDEV')
-rw-r--r--etc/etc.pica/MAKEDEV13
1 files changed, 12 insertions, 1 deletions
diff --git a/etc/etc.pica/MAKEDEV b/etc/etc.pica/MAKEDEV
index e418409d6b7..66ad581080d 100644
--- a/etc/etc.pica/MAKEDEV
+++ b/etc/etc.pica/MAKEDEV
@@ -39,6 +39,7 @@
# bpf* packet filter
# lkm loadable kernel modules interface
# tun* network tunnel driver
+# *rnd random data source
#
# Platform-specific devices:
#
@@ -51,7 +52,7 @@ case $i in
all)
sh MAKEDEV std fd fd0 sd0 sd1 sd2 st0 cd0 tty0 tty1 pty0 pty1
- sh MAKEDEV ttyv0 lpt0 pms0 local
+ sh MAKEDEV ttyv0 lpt0 pms0 rnd local
;;
std)
@@ -241,6 +242,16 @@ pty*)
esac
;;
+rnd|srnd|urnd|prnd)
+ rm -f rnd urnd srnd prnd
+ mknod rnd c 32 0
+ mknod srnd c 32 1
+ mknod urnd c 32 2
+ mknod prnd c 32 3
+ chown root.wheel rnd srnd urnd prnd
+ chmod 644 rnd srnd urnd prnd
+ ;;
+
local)
umask 0
sh MAKEDEV.local