summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-10-19 11:51:30 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-10-19 11:51:30 +0000
commit06daa3535c8886fa7da404a8f0fb78cccba313e1 (patch)
tree2ea8f9450a9671ff4a03ea7470ac9de4edde6bdf
parent13736c9983ff599650b38cda38a58999b53e9bf4 (diff)
add random device
-rw-r--r--etc/etc.hp300/MAKEDEV15
1 files changed, 13 insertions, 2 deletions
diff --git a/etc/etc.hp300/MAKEDEV b/etc/etc.hp300/MAKEDEV
index 743012a7a33..7052802d264 100644
--- a/etc/etc.hp300/MAKEDEV
+++ b/etc/etc.hp300/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.8 1996/09/18 22:03:42 deraadt Exp $
+# $OpenBSD: MAKEDEV,v 1.9 1996/10/19 11:51:29 mickey Exp $
# $NetBSD: MAKEDEV,v 1.12 1995/11/05 23:50:22 thorpej Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -63,6 +63,7 @@
# bpf* packet filter
# tun* network tunnel driver
# lkm loadable kernel modules interface
+# *random inkernel random number generator
#
PATH=/sbin:/bin/:/usr/bin:/usr/sbin
@@ -75,7 +76,7 @@ all)
sh MAKEDEV std fd ct0 ct1 st0 st1 ccd0 ccd1 ccd2 rd0 rd1 rd2
sh MAKEDEV sd0 sd1 sd2 pty0 vnd0 vnd1 vnd2 vnd3
sh MAKEDEV hil grf0 ite0 dca0 dcm0 dcm1 dcm2 dcm3
- sh MAKEDEV bpf0 bpf1 bpf2 bpf3 ipl tun0 tun1 tun2 tun3 lkm rnd
+ sh MAKEDEV bpf0 bpf1 bpf2 bpf3 ipl tun0 tun1 tun2 tun3 lkm random
sh MAKEDEV local
;;
@@ -325,6 +326,16 @@ pty*)
;;
esac
;;
+random|srandom|urandom|prandom|arandom)
+ rm -f random urandom srandom prandom arandom
+ mknod random c 25 0
+ mknod srandom c 25 1
+ mknod urandom c 25 2
+ mknod prandom c 25 3
+ mknod arandom c 25 4
+ chown root.wheel random srandom urandom prandom arandom
+ chmod 644 random srandom urandom prandom arandom
+ ;;
local)
umask 0