bthidd revision 302408
1#!/bin/sh 2# 3# $FreeBSD: stable/11/etc/rc.d/bthidd 298514 2016-04-23 16:10:54Z lme $ 4# 5 6# PROVIDE: bthidd 7# REQUIRE: DAEMON hcsecd 8# BEFORE: LOGIN 9# KEYWORD: nojail shutdown 10 11. /etc/rc.subr 12 13name="bthidd" 14desc="Bluetooth HID daemon" 15rcvar="bthidd_enable" 16command="/usr/sbin/${name}" 17pidfile="/var/run/${name}.pid" 18start_precmd="bthidd_prestart" 19 20bthidd_prestart() 21{ 22 load_kld -m kbdmux kbdmux 23 load_kld -m vkbd vkbd 24 load_kld -m ng_btsocket ng_btsocket 25 return 0 26} 27 28load_rc_config $name 29config="${bthidd_config:-/etc/bluetooth/${name}.conf}" 30hids="${bthidd_hids:-/var/db/${name}.hids}" 31command_args="-c ${config} -H ${hids} -p ${pidfile}" 32required_files="${config}" 33 34run_rc_command "$1" 35