kernel - Close MP race in vnode allocation code
[dragonfly.git] / etc / rc.d / rndcontrol
blobe28b4139635e1cfc122c7bb76cda47e7a4accab4
1 #!/bin/sh
3 # $DragonFly: src/etc/rc.d/rndcontrol,v 1.2 2005/11/19 21:47:32 swildner Exp $
6 # PROVIDE: rndcontrol
7 # REQUIRE: DAEMON
8 # BEFORE: LOGIN
10 . /etc/rc.subr
12 name="rndcontrol"
13 start_cmd="rand_start"
15 rand_start()
17 # interrupts for /dev/random device
19 case ${rand_irqs} in
20 [Nn][Oo] | '')
23 echo -n 'entropy IRQs:'
24 for irq in ${rand_irqs}; do
25 echo -n " ${irq}" && rndcontrol -q -s ${irq}
26 done
27 echo '.'
29 esac
33 load_rc_config $name
34 run_rc_command "$1"