Redirect the stderr of dd to /dev/null so the user doesn't see rather

weird dd output on bootup as /dev/random is being reseeded.  Also,
can't this happen in the background since /dev/random blocks?
This commit is contained in:
Jordan K. Hubbard 2000-10-20 17:41:46 +00:00
parent 2af8bc5b22
commit 1d745d28e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67383

4
etc/rc
View File

@ -203,10 +203,10 @@ yes)
# Entropy below is not great,
# but better than nothing.
(ps -gauxwww; iostat; vmstat; sysctl -a;
dmesg) | /bin/dd of=/dev/random bs=8k
dmesg) | /bin/dd of=/dev/random bs=8k 2>/dev/null
( for i in /etc /var/run ; do
cd $i ; ls -al ; cat *
done ) | /bin/dd of=/dev/random bs=8k
done ) | /bin/dd of=/dev/random bs=8k 2>/dev/null
fi
fi
;;