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