79cf481147
random script ran before filesystems were mounted, which is no longer the case. In random_start(), immediately delete each file that is fed into /dev/random, and recreate the default entropy file immediately after reading and deleting it. The logic used in random_stop() to determine which file to write to should probably be factored out and used here as well.
19 lines
219 B
Bash
Executable File
19 lines
219 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: adjkerntz
|
|
# REQUIRE: FILESYSTEMS
|
|
# BEFORE: netif
|
|
# KEYWORD: nojail
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="adjkerntz"
|
|
start_cmd="adjkerntz -i"
|
|
stop_cmd=":"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|