We don't have lkm, use aftermountlkm instead.
[dragonfly.git] / etc / rc.d / rndcontrol
1 #!/bin/sh
2 #
3 # $DragonFly: src/etc/rc.d/rndcontrol,v 1.1 2004/07/14 09:00:09 asmodai Exp $
4 #
5
6 # PROVIDE: rndcontrol
7 # REQUIRE: DAEMON
8 # BEFORE:  LOGIN
9 # KEYWORD: DragonFly
10
11 . /etc/rc.subr
12
13 name="rndcontrol"
14 start_cmd="rand_start"
15
16 rand_start()
17 {
18         # interrupts for /dev/random device
19         #
20         case ${rand_irqs} in
21         [Nn][Oo] | '')
22                 ;;
23         *)
24                 echo -n 'entropy IRQs:'
25                 for irq in ${rand_irqs}; do
26                         echo -n " ${irq}" && rndcontrol -q -s ${irq}
27                 done
28                 echo '.'
29                 ;;
30         esac
31 }
32
33
34 load_rc_config $name
35 run_rc_command "$1"