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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
entropy_file="/entropy"
|
|
||||||
|
|
||||||
soft_random_generator=`sysctl kern.random 2>/dev/null`
|
soft_random_generator=`sysctl kern.random 2>/dev/null`
|
||||||
|
|
||||||
if [ -n "${soft_random_generator}" ] ; then
|
if [ -n "${soft_random_generator}" ] ; then
|
||||||
@ -31,15 +29,9 @@ if [ -n "${soft_random_generator}" ] ; then
|
|||||||
|
|
||||||
# First pass at reseeding /dev/random.
|
# First pass at reseeding /dev/random.
|
||||||
#
|
#
|
||||||
case ${entropy_file} in
|
|
||||||
[Nn][Oo] | '')
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
if [ -w /dev/random ]; then
|
if [ -w /dev/random ]; then
|
||||||
feed_dev_random "${entropy_file}"
|
feed_dev_random "/entropy"
|
||||||
fi
|
fi
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
echo -n ' kickstart'
|
echo -n ' kickstart'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user