2005-10-11 19:16:48 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: hcsecd
|
|
|
|
# REQUIRE: DAEMON
|
|
|
|
# BEFORE: LOGIN
|
2008-07-16 19:50:29 +00:00
|
|
|
# KEYWORD: nojail shutdown
|
2005-10-11 19:16:48 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="hcsecd"
|
2016-04-23 16:10:54 +00:00
|
|
|
desc="Control link keys and PIN codes for Bluetooth devices"
|
2012-01-14 02:18:41 +00:00
|
|
|
rcvar="hcsecd_enable"
|
2005-10-11 19:16:48 +00:00
|
|
|
command="/usr/sbin/${name}"
|
|
|
|
pidfile="/var/run/${name}.pid"
|
2006-12-31 10:37:18 +00:00
|
|
|
required_modules="ng_btsocket"
|
2005-10-11 19:16:48 +00:00
|
|
|
|
|
|
|
load_rc_config $name
|
2005-11-15 20:36:26 +00:00
|
|
|
config="${hcsecd_config:-/etc/bluetooth/${name}.conf}"
|
|
|
|
command_args="-f ${config}"
|
|
|
|
required_files="${config}"
|
|
|
|
|
2005-10-11 19:16:48 +00:00
|
|
|
run_rc_command "$1"
|