rc.d/sshd entropy seeded detection not correct...

Sean Chittenden sean at chittenden.org
Sat Oct 23 15:15:59 PDT 2004


Simple patch, just wondering if this was intentional.  Looks like a bug 
to me and causes a headache/5min delay for startup on fresh installs.  
I'd like to get this into RELENG_5, maybe 5_3 if people agree its a 
bug.  I think it is and caused me quite a panic when the box didn't 
come up in a timely manner.  -sc

-------------- next part --------------
Index: sshd
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/sshd,v
retrieving revision 1.7
diff -u -r1.7 sshd
--- sshd	7 Oct 2004 13:55:26 -0000	1.7
+++ sshd	23 Oct 2004 21:47:12 -0000
@@ -22,7 +22,7 @@
 {
 	(
 	seeded=`sysctl -n kern.random.sys.seeded 2>/dev/null`
-	if [ "${seeded}" != "" ] ; then
+	if [ "${seeded}" != "1" ] ; then
 		warn "Setting entropy source to blocking mode."
 		echo "===================================================="
 		echo "Type a full screenful of random junk to unblock"
-------------- next part --------------


-- 
Sean Chittenden


More information about the freebsd-rc mailing list