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
24# doesn't make sense to run in a svcj: nojail keyword
25hcsecd_svcj="NO"
26
27run_rc_command "$1"
28