hcsecd revision 152462
1151240Semax#!/bin/sh 2151240Semax# 3151240Semax# $FreeBSD: head/etc/rc.d/hcsecd 152462 2005-11-15 20:36:26Z emax $ 4151240Semax# 5151240Semax 6151240Semax# PROVIDE: hcsecd 7151240Semax# REQUIRE: DAEMON 8151240Semax# BEFORE: LOGIN 9151240Semax# KEYWORD: nojail 10151240Semax 11151240Semax. /etc/rc.subr 12151240Semax 13151240Semaxname="hcsecd" 14151240Semaxcommand="/usr/sbin/${name}" 15151240Semaxpidfile="/var/run/${name}.pid" 16151240Semaxrcvar=`set_rcvar` 17152462Semaxstart_cmd="hcsecd_start" 18151240Semax 19152462Semaxhcsecd_start() 20152462Semax{ 21152462Semax kldload ng_btsocket > /dev/null 2>&1 22152462Semax ${command} ${command_args} 23152462Semax} 24152462Semax 25151240Semaxload_rc_config $name 26152462Semaxconfig="${hcsecd_config:-/etc/bluetooth/${name}.conf}" 27152462Semaxcommand_args="-f ${config}" 28152462Semaxrequired_files="${config}" 29152462Semax 30151240Semaxrun_rc_command "$1" 31