xref: /dragonfly/etc/rc.d/rndcontrol (revision 35e996c9)
1#!/bin/sh
2
3# PROVIDE: rndcontrol
4# REQUIRE: DAEMON
5# BEFORE:  LOGIN
6
7. /etc/rc.subr
8
9name="rndcontrol"
10start_cmd="rand_start"
11
12rand_start()
13{
14	# interrupts for /dev/random device
15	#
16	case ${rand_irqs} in
17	[Nn][Oo] | '')
18		;;
19	*)
20		echo -n 'entropy IRQs:'
21		for irq in ${rand_irqs}; do
22			echo -n " ${irq}" && rndcontrol -q -s ${irq}
23		done
24		echo '.'
25		;;
26	esac
27}
28
29load_rc_config $name
30run_rc_command "$1"
31