summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/bthidd
blob: 7c5ccf377c54600bda15e335813474a00f0aa16b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: bthidd
# REQUIRE: DAEMON hcsecd
# BEFORE: LOGIN
# KEYWORD: nojail shutdown

. /etc/rc.subr

name="bthidd"
rcvar="bthidd_enable"
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
start_precmd="bthidd_prestart"

bthidd_prestart()
{
	load_kld -m kbdmux kbdmux
	load_kld -m vkbd vkbd
	load_kld -m ng_btsocket ng_btsocket
	return 0
}

load_rc_config $name
config="${bthidd_config:-/etc/bluetooth/${name}.conf}"
hids="${bthidd_hids:-/var/db/${name}.hids}"
command_args="-c ${config} -H ${hids} -p ${pidfile}"
required_files="${config}"

run_rc_command "$1"
OpenPOWER on IntegriCloud