mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
34 lines
585 B
Plaintext
34 lines
585 B
Plaintext
|
#!/bin/sh
|
||
|
#
|
||
|
# $FreeBSD$
|
||
|
#
|
||
|
|
||
|
# PROVIDE: bthidd
|
||
|
# REQUIRE: DAEMON hcsecd
|
||
|
# BEFORE: LOGIN
|
||
|
# KEYWORD: nojail
|
||
|
|
||
|
. /etc/rc.subr
|
||
|
|
||
|
name="bthidd"
|
||
|
command="/usr/sbin/${name}"
|
||
|
pidfile="/var/run/${name}.pid"
|
||
|
rcvar=`set_rcvar`
|
||
|
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"
|