summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2000-10-20 17:41:46 +0000
committerjkh <jkh@FreeBSD.org>2000-10-20 17:41:46 +0000
commit02af04a1fbe478ec704796653724f46c704b4b65 (patch)
treeee0f73853c7ce1bbc09e6daea6c2fc3ce57d22a6 /etc/rc
parent2ea359d7f64e4ab96340d7d077327f983b07747a (diff)
downloadFreeBSD-src-02af04a1fbe478ec704796653724f46c704b4b65.zip
FreeBSD-src-02af04a1fbe478ec704796653724f46c704b4b65.tar.gz
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?
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index ca91c42..1c16f05 100644
--- a/etc/rc
+++ b/etc/rc
@@ -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
;;
OpenPOWER on IntegriCloud