hcsecd revision 152462
1#!/bin/sh 2# 3# $FreeBSD: head/etc/rc.d/hcsecd 152462 2005-11-15 20:36:26Z emax $ 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_cmd="hcsecd_start" 18 19hcsecd_start() 20{ 21 kldload ng_btsocket > /dev/null 2>&1 22 ${command} ${command_args} 23} 24 25load_rc_config $name 26config="${hcsecd_config:-/etc/bluetooth/${name}.conf}" 27command_args="-f ${config}" 28required_files="${config}" 29 30run_rc_command "$1" 31