diff options
author | brooks <brooks@FreeBSD.org> | 2004-04-15 18:23:14 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2004-04-15 18:23:14 +0000 |
commit | 2368868392b3e74987d462b27e71340d144d43ad (patch) | |
tree | 837c94918007d8cd32c32b2d10d0689ee5317275 /etc/rc.d | |
parent | 5ba6f20e07cd479774bfe57f96ca671ca9f67d88 (diff) | |
download | FreeBSD-src-2368868392b3e74987d462b27e71340d144d43ad.zip FreeBSD-src-2368868392b3e74987d462b27e71340d144d43ad.tar.gz |
Remove bogus checks on the value of ${entropy_file} and hardcode out
entropy source to /entropy. We have to assume there is no rc.conf at
this stage of the boot process.
Reported by: njl
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/preseedrandom | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/etc/rc.d/preseedrandom b/etc/rc.d/preseedrandom index ecbfc3c..14b2378 100644 --- a/etc/rc.d/preseedrandom +++ b/etc/rc.d/preseedrandom @@ -13,8 +13,6 @@ feed_dev_random() fi } -entropy_file="/entropy" - soft_random_generator=`sysctl kern.random 2>/dev/null` if [ -n "${soft_random_generator}" ] ; then @@ -31,15 +29,9 @@ if [ -n "${soft_random_generator}" ] ; then # First pass at reseeding /dev/random. # - case ${entropy_file} in - [Nn][Oo] | '') - ;; - *) - if [ -w /dev/random ]; then - feed_dev_random "${entropy_file}" - fi - ;; - esac + if [ -w /dev/random ]; then + feed_dev_random "/entropy" + fi echo -n ' kickstart' |