xref: /freebsd/libexec/rc/rc.d/hcsecd (revision 36712a94975f5bd0d26c85377283b49a2369c82f)
1#!/bin/sh
2#
3# $FreeBSD$
4#
5
6# PROVIDE: hcsecd
7# REQUIRE: DAEMON
8# BEFORE: LOGIN
9# KEYWORD: nojail shutdown
10
11. /etc/rc.subr
12
13name="hcsecd"
14desc="Control link keys and PIN codes for Bluetooth devices"
15rcvar="hcsecd_enable"
16command="/usr/sbin/${name}"
17pidfile="/var/run/${name}.pid"
18required_modules="ng_btsocket"
19
20load_rc_config $name
21config="${hcsecd_config:-/etc/bluetooth/${name}.conf}"
22command_args="-f ${config}"
23required_files="${config}"
24
25run_rc_command "$1"
26