From owner-svn-src-all@freebsd.org Fri Jan 11 16:18:24 2019 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C76761494DA6; Fri, 11 Jan 2019 16:18:24 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6CE20728FB; Fri, 11 Jan 2019 16:18:24 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5E5011E1B2; Fri, 11 Jan 2019 16:18:24 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x0BGIOwx060831; Fri, 11 Jan 2019 16:18:24 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x0BGIOw1060830; Fri, 11 Jan 2019 16:18:24 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201901111618.x0BGIOw1060830@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Fri, 11 Jan 2019 16:18:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r342947 - head/usr.sbin/bluetooth/bluetooth-config X-SVN-Group: head X-SVN-Commit-Author: bapt X-SVN-Commit-Paths: head/usr.sbin/bluetooth/bluetooth-config X-SVN-Commit-Revision: 342947 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 6CE20728FB X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.963,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 16:18:25 -0000 Author: bapt Date: Fri Jan 11 16:18:23 2019 New Revision: 342947 URL: https://svnweb.freebsd.org/changeset/base/342947 Log: Fix duplication. The patch adding the manpage was probably applied twice, so it resulted in duplication of the manpage Modified: head/usr.sbin/bluetooth/bluetooth-config/bluetooth-config.8 Modified: head/usr.sbin/bluetooth/bluetooth-config/bluetooth-config.8 ============================================================================== --- head/usr.sbin/bluetooth/bluetooth-config/bluetooth-config.8 Fri Jan 11 15:59:24 2019 (r342946) +++ head/usr.sbin/bluetooth/bluetooth-config/bluetooth-config.8 Fri Jan 11 16:18:23 2019 (r342947) @@ -109,114 +109,3 @@ utility first appeared in .An Dirk Engling Aq Mt erdgeist@erdgeist.org .Sh THANKS TO Lars Engels and Warren Block for suggestions, help, and testing. -.\" Copyright (c) 2019 Dirk Engling -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD$ -.\" -.Dd January 7, 2019 -.Dt BLUETOOTH-CONFIG 8 -.Os -.Sh NAME -.Nm bluetooth-config -.Nd a script to manage config files for the bluetooth sub system -.Sh SYNOPSIS -.Nm -.Ar scan -.Op Fl d Ar device -.Op Fl n Ar node -.Sh DESCRIPTION -The -.Nm -utility is an interactive script to provide a frontend to the complex bluetooth sub system daemons. -.Pp -The following options are available: -.Bl -tag -width indent+ -.It Fl d -Scan for a specific bluetooth device address. -.It Fl n -Limit scan to a specific host controller. Hint: List all netgraph nodes with -.Ql /usr/sbin/ngctl list . -.El -.Pp -.Nm -will help finding and setting up bluetooth controllers, scan for nearby bluetooth devices in -pairing mode, lookup their names, allow mapping to friendly names in -.Pa /etc/bluetooth/hosts , -ask for the paring PIN, instrument -.Xr hcsecd 8 -to securely pair with new devices and, if the device offers HID endpoints such as mice or -keyboards, configure and restart -.Xr bthidd 8 . -.Pp -.Nm -can bring up any interface and daemon necessary for operation and, if a node is provided on -command line, will do so automatically for that interface. -.Sh CAVEATS -.Nm -can not parse entries in -.Xr hcsecd 8 -config file and thus will ask the user to manually modify existing pairing PIN entries. -.Sh FILES -.Bl -tag -width ".Pa /etc/bluetooth/hosts" -compact -.It Pa /etc/bluetooth/hosts -.It Pa sysrc -n bthidd_config -.It Pa sysrc -n hcsecd_config -.El -.Sh EXAMPLES -.Nm -scan -n ubt0 -a 00:26:bb:7a:58:95 -.Bd -ragged -offset indent -This will scan the bluetooth controller ubt0hci for a bluetooth device with the address -00:26:bb:7a:58:95, set up ubt0 if necessary and enter an interactive dialog to pair the -new device. Since in this example a mouse is paired, -.Nm -will interact with -.Xr bthidd 8 , -enabling it if necessary and then write an HID descriptor to its config. -.Ed -.Pp -.Nm -scan -.Bd -ragged -offset indent -This will scan all bluetooth controllers on the systems for bluetooth devices, prompting -to bring up controllers or daemons along the way. -.Ed -.Sh SEE ALSO -.Xr bthidcontrol 8 , -.Xr bthidd 8 , -.Xr bthost 1 , -.Xr hccontrol 8 , -.Xr hcsecd 8 , -.Xr sdpcontrol 8 , -.Xr sysrc 8 -.Sh HISTORY -A -.Nm -utility first appeared in -.Fx 12.1 . -.Sh AUTHORS -.An Dirk Engling Aq Mt erdgeist@erdgeist.org -.Sh THANKS TO -Lars Engels and Warren Block for suggestions, help, and testing.