bthidd revision 230099
1162131Semax#!/bin/sh 2162131Semax# 3162131Semax# $FreeBSD: head/etc/rc.d/bthidd 230099 2012-01-14 02:18:41Z dougb $ 4162131Semax# 5162131Semax 6162131Semax# PROVIDE: bthidd 7162131Semax# REQUIRE: DAEMON hcsecd 8162131Semax# BEFORE: LOGIN 9180564Sdougb# KEYWORD: nojail shutdown 10162131Semax 11162131Semax. /etc/rc.subr 12162131Semax 13162131Semaxname="bthidd" 14230099Sdougbrcvar="bthidd_enable" 15162131Semaxcommand="/usr/sbin/${name}" 16162131Semaxpidfile="/var/run/${name}.pid" 17162131Semaxstart_precmd="bthidd_prestart" 18162131Semax 19162131Semaxbthidd_prestart() 20162131Semax{ 21162131Semax load_kld -m kbdmux kbdmux 22162131Semax load_kld -m vkbd vkbd 23162131Semax load_kld -m ng_btsocket ng_btsocket 24162131Semax return 0 25162131Semax} 26162131Semax 27162131Semaxload_rc_config $name 28162131Semaxconfig="${bthidd_config:-/etc/bluetooth/${name}.conf}" 29162131Semaxhids="${bthidd_hids:-/var/db/${name}.hids}" 30162131Semaxcommand_args="-c ${config} -H ${hids} -p ${pidfile}" 31162131Semaxrequired_files="${config}" 32162131Semax 33162131Semaxrun_rc_command "$1" 34