freebsd-skq/etc/rc.d/adjkerntz
Dag-Erling Smørgrav 7417198fcf Get rid of the postrandom script. It was born in a time when the
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.
2014-11-02 01:47:27 +00:00

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"