diff options
author | Sheldon Hearn <sheldonh@FreeBSD.org> | 2000-07-17 13:39:48 +0000 |
---|---|---|
committer | Sheldon Hearn <sheldonh@FreeBSD.org> | 2000-07-17 13:39:48 +0000 |
commit | 7a414e32d75f3c1d6075996128fbafd67abbfcba (patch) | |
tree | aa854981ade2205cb430a8006d9a298c86ba0e1a /etc/rc.shutdown | |
parent | f274479332fd8fe2f5aaf9ee55e388d6b1f46745 (diff) | |
download | src-7a414e32d75f3c1d6075996128fbafd67abbfcba.tar.gz src-7a414e32d75f3c1d6075996128fbafd67abbfcba.zip |
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
Notes
Notes:
svn path=/head/; revision=63311
Diffstat (limited to 'etc/rc.shutdown')
-rw-r--r-- | etc/rc.shutdown | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/rc.shutdown b/etc/rc.shutdown index 7014c70e75f4..4abeda0d9d6c 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 |