1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: stable/9/etc/rc.d/bthidd 180564 2008-07-16 19:50:29Z dougb $
| 3# $FreeBSD: stable/9/etc/rc.d/bthidd 231653 2012-02-14 10:16:56Z dougb $
|
4# 5 6# PROVIDE: bthidd 7# REQUIRE: DAEMON hcsecd 8# BEFORE: LOGIN 9# KEYWORD: nojail shutdown 10 11. /etc/rc.subr 12 13name="bthidd"
| 4# 5 6# PROVIDE: bthidd 7# REQUIRE: DAEMON hcsecd 8# BEFORE: LOGIN 9# KEYWORD: nojail shutdown 10 11. /etc/rc.subr 12 13name="bthidd"
|
| 14rcvar="bthidd_enable"
|
14command="/usr/sbin/${name}" 15pidfile="/var/run/${name}.pid"
| 15command="/usr/sbin/${name}" 16pidfile="/var/run/${name}.pid"
|
16rcvar=`set_rcvar`
| |
17start_precmd="bthidd_prestart" 18 19bthidd_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 27load_rc_config $name 28config="${bthidd_config:-/etc/bluetooth/${name}.conf}" 29hids="${bthidd_hids:-/var/db/${name}.hids}" 30command_args="-c ${config} -H ${hids} -p ${pidfile}" 31required_files="${config}" 32 33run_rc_command "$1"
| 17start_precmd="bthidd_prestart" 18 19bthidd_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 27load_rc_config $name 28config="${bthidd_config:-/etc/bluetooth/${name}.conf}" 29hids="${bthidd_hids:-/var/db/${name}.hids}" 30command_args="-c ${config} -H ${hids} -p ${pidfile}" 31required_files="${config}" 32 33run_rc_command "$1"
|