=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/rc,v retrieving revision 1.410 retrieving revision 1.411 diff -c -r1.410 -r1.411 *** src/etc/rc 2013/12/26 18:05:31 1.410 --- src/etc/rc 2013/12/27 04:21:03 1.411 *************** *** 1,4 **** ! # $OpenBSD: rc,v 1.410 2013/12/26 18:05:31 espie Exp $ # System startup script run by init on autoboot # or after single-user. --- 1,4 ---- ! # $OpenBSD: rc,v 1.411 2013/12/27 04:21:03 deraadt Exp $ # System startup script run by init on autoboot # or after single-user. *************** *** 102,114 **** random_seed() { if [ -f /var/db/host.random ]; then ! dd if=/var/db/host.random of=/dev/arandom bs=65536 count=1 \ > /dev/null 2>&1 chmod 600 /var/db/host.random >/dev/null 2>&1 # reset seed file, so that if a shutdown-less reboot occurs, # the next seed is not a repeat ! dd if=/dev/arandom of=/var/db/host.random bs=65536 count=1 \ > /dev/null 2>&1 fi } --- 102,114 ---- random_seed() { if [ -f /var/db/host.random ]; then ! dd if=/var/db/host.random of=/dev/random bs=65536 count=1 \ > /dev/null 2>&1 chmod 600 /var/db/host.random >/dev/null 2>&1 # reset seed file, so that if a shutdown-less reboot occurs, # the next seed is not a repeat ! dd if=/dev/random of=/var/db/host.random bs=65536 count=1 \ > /dev/null 2>&1 fi } *************** *** 230,236 **** . /etc/rc.conf if [ X"$1" = X"shutdown" ]; then ! dd if=/dev/arandom of=/var/db/host.random bs=65536 count=1 >/dev/null 2>&1 chmod 600 /var/db/host.random >/dev/null 2>&1 _c=$? if [ ${_c} -eq 0 -a -n "${pkg_scripts}" ]; then --- 230,236 ---- . /etc/rc.conf if [ X"$1" = X"shutdown" ]; then ! dd if=/dev/random of=/var/db/host.random bs=65536 count=1 >/dev/null 2>&1 chmod 600 /var/db/host.random >/dev/null 2>&1 _c=$? if [ ${_c} -eq 0 -a -n "${pkg_scripts}" ]; then *************** *** 358,364 **** touch /etc/resolv.conf fi . /etc/netstart ! echo rekey > /dev/arandom # any write triggers an RC4 rekey if [ X"${pf}" != X"NO" ]; then if [ -f ${pf_rules} ]; then --- 358,364 ---- touch /etc/resolv.conf fi . /etc/netstart ! echo rekey > /dev/random # any write triggers an RC4 rekey if [ X"${pf}" != X"NO" ]; then if [ -f ${pf_rules} ]; then