hcsecd revision 298514
1151240Semax#!/bin/sh 2151240Semax# 3151240Semax# $FreeBSD: head/etc/rc.d/hcsecd 298514 2016-04-23 16:10:54Z lme $ 4151240Semax# 5151240Semax 6151240Semax# PROVIDE: hcsecd 7151240Semax# REQUIRE: DAEMON 8151240Semax# BEFORE: LOGIN 9180564Sdougb# KEYWORD: nojail shutdown 10151240Semax 11151240Semax. /etc/rc.subr 12151240Semax 13151240Semaxname="hcsecd" 14298514Slmedesc="Control link keys and PIN codes for Bluetooth devices" 15230099Sdougbrcvar="hcsecd_enable" 16151240Semaxcommand="/usr/sbin/${name}" 17151240Semaxpidfile="/var/run/${name}.pid" 18165683Syarrequired_modules="ng_btsocket" 19151240Semax 20151240Semaxload_rc_config $name 21152462Semaxconfig="${hcsecd_config:-/etc/bluetooth/${name}.conf}" 22152462Semaxcommand_args="-f ${config}" 23152462Semaxrequired_files="${config}" 24152462Semax 25151240Semaxrun_rc_command "$1" 26