Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Apr 2005 10:10:12 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Rob <spamrefuse@yahoo.com>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: [PATCH] Re: /etc/rc.d/sshd : "kldload random" missing?
Message-ID:  <200504251010.22268.doconnor@gsoft.com.au>
In-Reply-To: <20050424080911.54130.qmail@web54009.mail.yahoo.com>
References:  <20050424080911.54130.qmail@web54009.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart4731757.GGO1LmdKjk
Content-Type: multipart/mixed;
  boundary="Boundary-01=_sxDbC8IQxgyHcFm"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_sxDbC8IQxgyHcFm
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sun, 24 Apr 2005 17:39, Rob wrote:
> Nevertheless, I have tried your advice, but to
> no avail.

Hmm, try this diff it kldload's random if it's not present.

=2D-=20
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

--Boundary-01=_sxDbC8IQxgyHcFm
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="random-kld.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="random-kld.diff"

=2D-- random.orig	Mon Apr 25 10:01:23 2005
+++ random	Mon Apr 25 10:09:51 2005
@@ -11,7 +11,9 @@
 . /etc/rc.subr
=20
 name=3D"random"
+rcvar=3D`set_rcvar`
 start_cmd=3D"random_start"
+start_precmd=3D"random_precmd"
 stop_cmd=3D"random_stop"
=20
 feed_dev_random()
@@ -21,6 +23,17 @@
 	fi
 }
=20
+random_precmd()
+{
+	if ! sysctl kern.random.sys.seeded >/dev/null 2>&1; then
+		if ! kldload random; then
+			warn 'Could not load random module'
+			return 1
+		fi
+	fi
+	return 0
+}
+
 random_start()
 {
 	# Reseed /dev/random with previously stored entropy.
@@ -91,3 +104,4 @@
=20
 load_rc_config $name
 run_rc_command "$1"
+

--Boundary-01=_sxDbC8IQxgyHcFm--

--nextPart4731757.GGO1LmdKjk
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQBCbDx25ZPcIHs/zowRAga3AJ9101dlFXBuCT4G1HMIy4YlldCrKgCfemNS
XD8uclx1Mhnvol41LSjoXOA=
=ZP5h
-----END PGP SIGNATURE-----

--nextPart4731757.GGO1LmdKjk--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504251010.22268.doconnor>