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.

-- 
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
--- random.orig	Mon Apr 25 10:01:23 2005
+++ random	Mon Apr 25 10:09:51 2005
@@ -11,7 +11,9 @@
 . /etc/rc.subr
 
 name="random"
+rcvar=`set_rcvar`
 start_cmd="random_start"
+start_precmd="random_precmd"
 stop_cmd="random_stop"
 
 feed_dev_random()
@@ -21,6 +23,17 @@
 	fi
 }
 
+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 @@
 
 load_rc_config $name
 run_rc_command "$1"
+

Attachment: pgpTwjWFrxYzC.pgp
Description: PGP signature

Reply via email to