1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.d/hcsecd 152690 2005-11-22 19:17:41Z emax $
| 3# $FreeBSD: head/etc/rc.d/hcsecd 165683 2006-12-31 10:37:18Z yar $
|
4# 5 6# PROVIDE: hcsecd 7# REQUIRE: DAEMON 8# BEFORE: LOGIN 9# KEYWORD: nojail 10 11. /etc/rc.subr 12 13name="hcsecd" 14command="/usr/sbin/${name}" 15pidfile="/var/run/${name}.pid" 16rcvar=`set_rcvar`
| 4# 5 6# PROVIDE: hcsecd 7# REQUIRE: DAEMON 8# BEFORE: LOGIN 9# KEYWORD: nojail 10 11. /etc/rc.subr 12 13name="hcsecd" 14command="/usr/sbin/${name}" 15pidfile="/var/run/${name}.pid" 16rcvar=`set_rcvar`
|
17start_precmd="hcsecd_prestart"
| 17required_modules="ng_btsocket"
|
18
| 18
|
19hcsecd_prestart() 20{ 21 if ! kldstat -q -m ng_btsocket ; then 22 if kldload ng_btsocket > /dev/null 2>&1 ; then 23 info 'ng_btsocket module loaded' 24 else 25 warn 'ng_btsocket module failed to load' 26 return 1 27 fi 28 fi 29 30 return 0 31} 32
| |
33load_rc_config $name 34config="${hcsecd_config:-/etc/bluetooth/${name}.conf}" 35command_args="-f ${config}" 36required_files="${config}" 37 38run_rc_command "$1"
| 19load_rc_config $name 20config="${hcsecd_config:-/etc/bluetooth/${name}.conf}" 21command_args="-f ${config}" 22required_files="${config}" 23 24run_rc_command "$1"
|