aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--initscripts.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 6c657a09..31523860 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -106,8 +106,8 @@ chmod 600 /var/log/btmp
/sbin/chkconfig --add network
/sbin/chkconfig --add netconsole
-if [ ! -f /var/lib/random-seed ] ; then
- dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null
+if [ ! -f /var/lib/random-seed -a -e /dev/urandom ] ; then
+ dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=4096 2>/dev/null
chmod 600 /var/lib/random-seed
fi