Changeset View
Changeset View
Standalone View
Standalone View
etc/rc.d/hcsecd
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: hcsecd | # PROVIDE: hcsecd | ||||
# REQUIRE: DAEMON | # REQUIRE: DAEMON | ||||
# BEFORE: LOGIN | # BEFORE: LOGIN | ||||
# KEYWORD: nojail shutdown | # KEYWORD: nojail shutdown | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="hcsecd" | name="hcsecd" | ||||
desc="Control link keys and PIN codes for Bluetooth devices" | |||||
rcvar="hcsecd_enable" | rcvar="hcsecd_enable" | ||||
command="/usr/sbin/${name}" | command="/usr/sbin/${name}" | ||||
pidfile="/var/run/${name}.pid" | pidfile="/var/run/${name}.pid" | ||||
required_modules="ng_btsocket" | required_modules="ng_btsocket" | ||||
load_rc_config $name | load_rc_config $name | ||||
config="${hcsecd_config:-/etc/bluetooth/${name}.conf}" | config="${hcsecd_config:-/etc/bluetooth/${name}.conf}" | ||||
command_args="-f ${config}" | command_args="-f ${config}" | ||||
required_files="${config}" | required_files="${config}" | ||||
run_rc_command "$1" | run_rc_command "$1" |