Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/random
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: random | # PROVIDE: random | ||||
# REQUIRE: FILESYSTEMS | # REQUIRE: FILESYSTEMS | ||||
# BEFORE: netif | # BEFORE: netif | ||||
# KEYWORD: nojail shutdown | # KEYWORD: nojail shutdown | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="random" | name="random" | ||||
desc="Harvest and save entropy for random device" | |||||
start_cmd="random_start" | start_cmd="random_start" | ||||
stop_cmd="random_stop" | stop_cmd="random_stop" | ||||
extra_commands="saveseed" | extra_commands="saveseed" | ||||
saveseed_cmd="${name}_stop" | saveseed_cmd="${name}_stop" | ||||
save_dev_random() | save_dev_random() | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |