summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2005-04-11 02:45:05 +0000
committerDoug Barton <dougb@FreeBSD.org>2005-04-11 02:45:05 +0000
commitf297a20e30c4a680e1832409eca697033c69005a (patch)
treecace9f5557db5804887a28d9bab1a677eb397d89 /etc
parentca44abece944c698053ac4fd3a3e301dd78025ff (diff)
Notes
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf2
-rw-r--r--etc/rc.d/random9
2 files changed, 5 insertions, 6 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 384be74cfcbc..a187755c0178 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -459,7 +459,7 @@ kern_securelevel="-1" # range: -1..3 ; `-1' is the most insecure
update_motd="YES" # update version info in /etc/motd (or NO)
unaligned_print="YES" # print unaligned access warnings on the alpha (or NO).
entropy_file="/entropy" # Set to NO to disable caching entropy through reboots.
- # /var/db/entropy is preferred if / is not available.
+ # /var/db/entropy-file is preferred if / is not avail.
entropy_dir="/var/db/entropy" # Set to NO to disable caching entropy via cron.
entropy_save_sz="2048" # Size of the entropy cache files.
entropy_save_num="8" # Number of entropy cache files to save.
diff --git a/etc/rc.d/random b/etc/rc.d/random
index 823db6de77e5..7c72e5542b56 100644
--- a/etc/rc.d/random
+++ b/etc/rc.d/random
@@ -68,15 +68,14 @@ random_stop()
else
# Try this as a reasonable alternative for read-only
# roots, diskless workstations, etc.
- rm -f /var/db/entropy
- if touch /var/db/entropy; then
- entropy_file_confirmed=/var/db/entropy
+ rm -f /var/db/entropy-file
+ if touch /var/db/entropy-file; then
+ entropy_file_confirmed=/var/db/entropy-file
fi
fi
case ${entropy_file_confirmed} in
'')
- err 1 '${entropy_file_confirmed}:' \
- ' entropy file write failed.'
+ err 1 'entropy file write failed.'
;;
*)
dd if=/dev/random of=${entropy_file_confirmed} \