Deleted Added
full compact
hcsecd (151240) hcsecd (152462)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/hcsecd 151240 2005-10-11 19:16:48Z emax $
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"
4#
5
6# PROVIDE: hcsecd
7# REQUIRE: DAEMON
8# BEFORE: LOGIN
9# KEYWORD: nojail
10
11. /etc/rc.subr
12
13name="hcsecd"
14config="${hcsecd_config:-/etc/bluetooth/${name}.conf}"
15command="/usr/sbin/${name}"
14command="/usr/sbin/${name}"
16command_args="-f ${config}"
17pidfile="/var/run/${name}.pid"
15pidfile="/var/run/${name}.pid"
18required_files="${config}"
19rcvar=`set_rcvar`
16rcvar=`set_rcvar`
17start_cmd="hcsecd_start"
20
18
19hcsecd_start()
20{
21 kldload ng_btsocket > /dev/null 2>&1
22 ${command} ${command_args}
23}
24
21load_rc_config $name
25load_rc_config $name
26config="${hcsecd_config:-/etc/bluetooth/${name}.conf}"
27command_args="-f ${config}"
28required_files="${config}"
29
22run_rc_command "$1"
30run_rc_command "$1"