From 59ad463b6cb30b2828ca1c035845c8b43c8a3e1b Mon Sep 17 00:00:00 2001 From: sheldonh Date: Mon, 17 Jul 2000 13:39:48 +0000 Subject: Improve on previous commit: Don't inhibit the trailing newline for entropy-related messages. Try harder to save the seed file on shutdown. Reviewed by: markm --- etc/rc.shutdown | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'etc/rc.shutdown') diff --git a/etc/rc.shutdown b/etc/rc.shutdown index 7014c70..4abeda0 100644 --- a/etc/rc.shutdown +++ b/etc/rc.shutdown @@ -32,12 +32,11 @@ case ${entropy_file} in [Nn][Oo] | '') ;; *) - if [ -f ${entropy_file} -a -r ${entropy_file} ] ; then - echo -n "Writing entropy file" - touch ${entropy_file} && \ - chmod 600 ${entropy_file} && \ - dd if=/dev/random of=${entropy_file} bs=4096 count=1 - fi + echo "Writing entropy file" + rm -f ${entropy_file} + touch ${entropy_file} && \ + chmod 600 ${entropy_file} && \ + dd if=/dev/random of=${entropy_file} bs=4096 count=1 ;; esac -- cgit v1.1