summaryrefslogtreecommitdiff
path: root/usr.sbin/btd
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2008-12-01 20:22:57 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2008-12-01 20:22:57 +0000
commit8b47e7505edc209fd0339237fbaefd66fddb39d8 (patch)
tree7d6a65eb0418c2d06ca72d639f38a854d2df76a6 /usr.sbin/btd
parente9a0632db4c5c099d14de47ee78e069a157a620b (diff)
introduce btd(8) and btctl(8), tweak bt.conf(5)
feedback from uwe@ and jmc@
Diffstat (limited to 'usr.sbin/btd')
-rw-r--r--usr.sbin/btd/Makefile4
-rw-r--r--usr.sbin/btd/btd.860
2 files changed, 62 insertions, 2 deletions
diff --git a/usr.sbin/btd/Makefile b/usr.sbin/btd/Makefile
index 0a9cf592838..8a65f8e50c0 100644
--- a/usr.sbin/btd/Makefile
+++ b/usr.sbin/btd/Makefile
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.5 2008/11/26 21:48:30 uwe Exp $
+# $OpenBSD: Makefile,v 1.6 2008/12/01 20:22:56 todd Exp $
PROG= btd
SRCS= atomicio.c bt.c bt_subr.c btd.c conf.c control.c db.c \
devinfo.c fdpass.c hci.c log.c sdp.c sdp_query.c \
sdp_search.c util.c
-NOMAN=
+MAN= btd.8
LDADD+= -levent -lusbhid
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/../btctl
diff --git a/usr.sbin/btd/btd.8 b/usr.sbin/btd/btd.8
new file mode 100644
index 00000000000..7fc65109883
--- /dev/null
+++ b/usr.sbin/btd/btd.8
@@ -0,0 +1,60 @@
+.\" $OpenBSD: btd.8,v 1.1 2008/12/01 20:22:56 todd 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: December 1 2008 $
+.Dt BTD 8
+.Os
+.Sh NAME
+.Nm btd
+.Nd Bluetooth daemon
+.Sh SYNOPSIS
+.Nm btd
+.Op Fl d
+.Sh DESCRIPTION
+.Nm
+is a bluetooth daemon which keeps track of SDP responses
+and link keys for bluetooth devices.
+.Pp
+.Nm
+is usually started at boot time, and can be enabled by
+setting the following in
+.Pa /etc/rc.conf.local :
+.Pp
+.Dl bt=YES
+.Pp
+The options are as follows:
+.Bl -tag -width Ds
+.It Fl d
+foreground mode.
+.Sh FILES
+.Bl -tag -width "/var/run/btd.sockXXX" -compact
+.It Pa /var/run/btd.sock
+Socket
+.Nm
+listens on.
+.It Pa /var/db/btd.db
+Where SDP responses and link keys are cached.
+.Sh SEE ALSO
+.Xr sbt 4 ,
+.Xr ubt 4 ,
+.Xr bt.conf 5 ,
+.Xr btctl 8 ,
+.Xr rc 8
+.Sh HISTORY
+The
+.Nm
+program first appeared in
+.Ox 4.5 .