After some discussion with markm, back out most of rev 1.221,

which really wasn't such a hot idea in retrospect.

If the random device isn't available, it probably isn't wanted.
If it's wanted, it should be enabled in loader.conf.
This commit is contained in:
Sheldon Hearn 2000-08-21 14:33:20 +00:00
parent c90be48012
commit cbc43d2db3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64892

10
etc/rc
View file

@ -140,15 +140,7 @@ case ${entropy_file} in
*)
if [ -f ${entropy_file} -a -r ${entropy_file} -a -w /dev/random ]; then
echo "Reading entropy file"
if ! cat ${entropy_file} 2>/dev/null >/dev/random; then
if ! kldstat -n randomdev >/dev/null 2>&1; then
kldload randomdev && \
cat ${entropy_file} 2>/dev/null >/dev/random
fi
fi
if [ $? != 0 ]; then
echo "Writing entropy file to /dev/random failed"
fi
cat ${entropy_file} > /dev/random
rm -f ${entropy_file}
fi
;;