summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2019-10-02 17:15:41 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2019-10-02 17:15:41 +0000
commit782cad4826c91d0ff901fab4d81cb70eccb624f2 (patch)
tree94ed97f72db192b1ee241eec2b3f67b9ada38319 /etc/rc
parentef1056361762ee29c9cb5a5e28a4b2c833a370d6 (diff)
feed "sysctl hw" into /dev/random; a cheap way to feed in sensor data
as a one-shot at boot without more complex kernel work, and also includes some serial numbers/guids which may add a little more entropy e.g. for systems where /etc/random.seed may be known (e.g. cloned disk images). "why not" deraadt@
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 9a3917986cc..8e0bd21d26d 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.537 2019/05/10 13:29:21 guenther Exp $
+# $OpenBSD: rc,v 1.538 2019/10/02 17:15:40 sthen Exp $
# System startup script run by init on autoboot or after single-user.
# Output and error are redirected to console by init, and the console is the
@@ -445,6 +445,7 @@ sh /etc/netstart
# Any write triggers a rekey.
dmesg >/dev/random
+sysctl hw >/dev/random
# Load pf rules and bring up pfsync interface.
if [[ $pf != NO ]]; then