]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - etc/rc.d/bthidd
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / etc / rc.d / bthidd
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: bthidd
7 # REQUIRE: DAEMON hcsecd
8 # BEFORE: LOGIN
9 # KEYWORD: nojail shutdown
10
11 . /etc/rc.subr
12
13 name="bthidd"
14 rcvar="bthidd_enable"
15 command="/usr/sbin/${name}"
16 pidfile="/var/run/${name}.pid"
17 start_precmd="bthidd_prestart"
18
19 bthidd_prestart()
20 {
21         load_kld -m kbdmux kbdmux
22         load_kld -m vkbd vkbd
23         load_kld -m ng_btsocket ng_btsocket
24         return 0
25 }
26
27 load_rc_config $name
28 config="${bthidd_config:-/etc/bluetooth/${name}.conf}"
29 hids="${bthidd_hids:-/var/db/${name}.hids}"
30 command_args="-c ${config} -H ${hids} -p ${pidfile}"
31 required_files="${config}"
32
33 run_rc_command "$1"