summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2006-04-11 09:08:15 +0000
committerflz <flz@FreeBSD.org>2006-04-11 09:08:15 +0000
commit8c63e779ed6c94c8f662889c85f064dcb46d3a62 (patch)
treebf81e98521904ab97853d47880b3fe0a45f1b268 /etc
parent7e4f15ea33b08b4b3167657a2f8c94d50a560744 (diff)
downloadFreeBSD-src-8c63e779ed6c94c8f662889c85f064dcb46d3a62.zip
FreeBSD-src-8c63e779ed6c94c8f662889c85f064dcb46d3a62.tar.gz
- Fix rc.d/sshd test on kern.random.sys.seeded.
PR: conf/94377 Submitted by: dwhite Approved by: cperciva (mentor) MFC after: 1 week
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/sshd2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/sshd b/etc/rc.d/sshd
index 0c18bbd..1f4078c 100755
--- a/etc/rc.d/sshd
+++ b/etc/rc.d/sshd
@@ -25,7 +25,7 @@ user_reseed()
{
(
seeded=`sysctl -n kern.random.sys.seeded 2>/dev/null`
- if [ "${seeded}" != "" ] ; then
+ if [ "x${seeded}" != "x" ] && [ ${seeded} -eq 0 ] ; then
warn "Setting entropy source to blocking mode."
echo "===================================================="
echo "Type a full screenful of random junk to unblock"
OpenPOWER on IntegriCloud