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
This commit is contained in:
parent
6ea20e1c98
commit
21462105eb
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user