summaryrefslogtreecommitdiff
path: root/usr.sbin/btctl/bt.conf.5
blob: 3278f749e11d50864be374e1fcf6b54c53b75d31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
.\"	$OpenBSD: bt.conf.5,v 1.4 2009/04/26 13:10:20 tobias Exp $
.\"
.\" Copyright (c) 2008 Todd T. Fries <todd@OpenBSD.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: April 26 2009 $
.Dt BT.CONF 5
.Os
.Sh NAME
.Nm bt.conf
.Nd bluetooth configuration file
.Sh DESCRIPTION
The
.Nm
file specifies interfaces and device attachments for bluetooth.
.Pp
The bluetooth daemon,
.Xr btd 8 ,
can be enabled to run at boot time via the
.Va bt
variable in
.Xr rc 8 .
The
.Nm
configuration itself is loaded at boot time
in
.Xr rc.conf.local 8 .
A utility called
.Xr btctl 8
is also available to load
.Nm
configurations.
.Sh BT.CONF FILE FORMAT
Lines beginning with
.Sq #
and empty lines are regarded as comments,
and ignored.
.\" Lines may be split using the
.\" .Sq \e
.\" character.
.Pp
.Ar interface
describes the
.Xr bluetooth 3
interface to attach to.
Possible arguments include
.Ar interfacemac
and
.Ar name .
.Ar interfacemac
may be
.Sq *
to match any further interfaces.
.Ar name
may be
.Dq disable
to disable an interface from being used.
.Pp
.Ar attach
describes the
.Xr bluetooth 3
devices to attach.
Possible arguments include
.Ar devicemac ,
.Ar type ,
and
.Ar pin .
.Ar devicemac
may be
.Sq *
to match any device.
.Ar type
describes the type of device to attach.
Possible types are
.Pp
.Bl -column "noneXX" "Keyboard/Mouse" -offset indent -compact
.It Em Type Description
.It Li none Ta "catchall"
.It Li hf Ta "Hands Free"
.It Li hid Ta "Keyboard/Mouse"
.It Li hset Ta "Handset"
.El
.Pp
.Ar pin
describes the pin number used to pair with the device.
The pin number must be specified in quotes.
.Pp
For example:
.Bd -literal -offset indent
# Enable all interfaces.
interface * "OpenBSD BT"
# Attach a keyboard and/or mouse,
# or a mobile phone emulating such things.
attach 00:02:76:08:1c:37 type hid pin "0000"
.Ed
.Sh SEE ALSO
.Xr sbt 4 ,
.Xr ubt 4 ,
.Xr btctl 8 ,
.Xr btd 8
.Sh HISTORY
The
.Nm
file format first appeared in
.Ox 4.5 .