2005-10-11 19:16:48 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: hcsecd
|
|
|
|
# REQUIRE: DAEMON
|
|
|
|
# BEFORE: LOGIN
|
|
|
|
# KEYWORD: nojail
|
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="hcsecd"
|
|
|
|
command="/usr/sbin/${name}"
|
|
|
|
pidfile="/var/run/${name}.pid"
|
|
|
|
rcvar=`set_rcvar`
|
2005-11-15 20:36:26 +00:00
|
|
|
start_cmd="hcsecd_start"
|
|
|
|
|
|
|
|
hcsecd_start()
|
|
|
|
{
|
|
|
|
kldload ng_btsocket > /dev/null 2>&1
|
|
|
|
${command} ${command_args}
|
|
|
|
}
|
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"
|