diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2019-10-02 17:15:41 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2019-10-02 17:15:41 +0000 |
commit | 782cad4826c91d0ff901fab4d81cb70eccb624f2 (patch) | |
tree | 94ed97f72db192b1ee241eec2b3f67b9ada38319 /etc/rc | |
parent | ef1056361762ee29c9cb5a5e28a4b2c833a370d6 (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/rc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |