summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/rc4
-rw-r--r--etc/rc.shutdown11
2 files changed, 7 insertions, 8 deletions
diff --git a/etc/rc b/etc/rc
index 47d15b4..7b5b5f8 100644
--- a/etc/rc
+++ b/etc/rc
@@ -138,8 +138,8 @@ case ${entropy_file} in
[Nn][Oo] | '')
;;
*)
- if [ -f ${entropy_file} -a -r ${entropy_file} ] ; then
- echo -n "Reading entropy file"
+ if [ -f ${entropy_file} -a -r ${entropy_file} ]; then
+ echo "Reading entropy file"
cat ${entropy_file} > /dev/random
rm -f ${entropy_file}
fi
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
OpenPOWER on IntegriCloud