Tweak hccontrol usage() and man page to match our netgraph-less
bluetooth implementation. Bump PKGNAME.
This commit is contained in:
parent
16b966f888
commit
58b4434318
@ -1,7 +1,8 @@
|
|||||||
# $OpenBSD: Makefile,v 1.1.1.1 2005/07/16 20:49:46 grange Exp $
|
# $OpenBSD: Makefile,v 1.2 2005/07/17 18:20:29 grange Exp $
|
||||||
|
|
||||||
COMMENT= "bluetooth network tools"
|
COMMENT= "bluetooth network tools"
|
||||||
DISTNAME= bluetooth-tools-20050716
|
DISTNAME= bluetooth-tools-20050716
|
||||||
|
PKGNAME= ${DISTNAME}p0
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MAINTAINER= Alexander Yurchenko <grange@openbsd.org>
|
MAINTAINER= Alexander Yurchenko <grange@openbsd.org>
|
||||||
|
|
||||||
|
67
net/bluetooth-tools/patches/patch-hccontrol_hccontrol_8
Normal file
67
net/bluetooth-tools/patches/patch-hccontrol_hccontrol_8
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
$OpenBSD: patch-hccontrol_hccontrol_8,v 1.1 2005/07/17 18:20:29 grange Exp $
|
||||||
|
--- hccontrol/hccontrol.8.orig Sun Jul 17 22:08:51 2005
|
||||||
|
+++ hccontrol/hccontrol.8 Sun Jul 17 22:12:56 2005
|
||||||
|
@@ -30,20 +30,17 @@
|
||||||
|
.Os
|
||||||
|
.Sh NAME
|
||||||
|
.Nm hccontrol
|
||||||
|
-.Nd HCI configuration utility
|
||||||
|
+.Nd Bluetooth HCI control utility
|
||||||
|
.Sh SYNOPSIS
|
||||||
|
.Nm
|
||||||
|
.Op Fl hN
|
||||||
|
-.Fl n Ar HCI_node_name
|
||||||
|
+.Fl n Ar interface
|
||||||
|
.Ar command
|
||||||
|
.Op Ar parameters ...
|
||||||
|
.Sh DESCRIPTION
|
||||||
|
The
|
||||||
|
.Nm
|
||||||
|
-utility connects to the specified Netgraph node of type
|
||||||
|
-.Dv HCI
|
||||||
|
-and attempts to send specified command to the HCI Netgraph node or to the
|
||||||
|
-associated Bluetooth device.
|
||||||
|
+utility sends specified command to the Bluetooth network interface.
|
||||||
|
The
|
||||||
|
.Nm
|
||||||
|
utility will print results to the standard output and error messages to
|
||||||
|
@@ -58,8 +55,8 @@ Show Bluetooth addresses as numbers.
|
||||||
|
Normally
|
||||||
|
.Nm
|
||||||
|
attempts to resolve Bluetooth addresses, and display them symbolically.
|
||||||
|
-.It Fl n Ar HCI_node_name
|
||||||
|
-Connect to the specified HCI Netgraph node.
|
||||||
|
+.It Fl n Ar interface
|
||||||
|
+Use specified network interface, e.g. ubt0.
|
||||||
|
.It Ar command
|
||||||
|
One of the supported commands (see below).
|
||||||
|
Special command
|
||||||
|
@@ -81,7 +78,7 @@ The currently supported HCI commands in
|
||||||
|
.Nm
|
||||||
|
are:
|
||||||
|
.Pp
|
||||||
|
-.Bl -tag -offset indent -compact
|
||||||
|
+.Bl -tag -width indent -compact
|
||||||
|
.It Cm Inquiry
|
||||||
|
.It Cm Create_Connection
|
||||||
|
.It Cm Disconnect
|
||||||
|
@@ -148,7 +145,7 @@ The currently supported node commands in
|
||||||
|
.Nm
|
||||||
|
are:
|
||||||
|
.Pp
|
||||||
|
-.Bl -tag -offset indent -compact
|
||||||
|
+.Bl -tag -width indent -compact
|
||||||
|
.It Cm Read_Node_State
|
||||||
|
.It Cm Initialize
|
||||||
|
.It Cm Read_Debug_Level
|
||||||
|
@@ -172,9 +169,7 @@ are:
|
||||||
|
.Ex -std
|
||||||
|
.Sh SEE ALSO
|
||||||
|
.Xr bluetooth 3 ,
|
||||||
|
-.Xr netgraph 3 ,
|
||||||
|
-.Xr netgraph 4 ,
|
||||||
|
-.Xr ng_hci 4 ,
|
||||||
|
+.Xr ubt 4 ,
|
||||||
|
.Xr hcseriald 8
|
||||||
|
.Sh AUTHORS
|
||||||
|
.An Maksim Yevmenkin Aq m_evmenkin@yahoo.com
|
@ -1,6 +1,6 @@
|
|||||||
$OpenBSD: patch-hccontrol_hccontrol_c,v 1.1.1.1 2005/07/16 20:49:46 grange Exp $
|
$OpenBSD: patch-hccontrol_hccontrol_c,v 1.2 2005/07/17 18:20:29 grange Exp $
|
||||||
--- hccontrol/hccontrol.c.orig Sat Jul 16 01:19:36 2005
|
--- hccontrol/hccontrol.c.orig Sat Jul 16 00:54:41 2005
|
||||||
+++ hccontrol/hccontrol.c Sat Jul 16 01:20:27 2005
|
+++ hccontrol/hccontrol.c Sun Jul 17 22:13:37 2005
|
||||||
@@ -135,6 +135,7 @@ socket_open(char const *node)
|
@@ -135,6 +135,7 @@ socket_open(char const *node)
|
||||||
(void * const) &filter, sizeof(filter)) < 0)
|
(void * const) &filter, sizeof(filter)) < 0)
|
||||||
err(4, "Could not setsockopt()");
|
err(4, "Could not setsockopt()");
|
||||||
@ -17,3 +17,12 @@ $OpenBSD: patch-hccontrol_hccontrol_c,v 1.1.1.1 2005/07/16 20:49:46 grange Exp $
|
|||||||
|
|
||||||
timeout ++;
|
timeout ++;
|
||||||
|
|
||||||
|
@@ -268,7 +270,7 @@ print_hci_command(struct hci_command *ca
|
||||||
|
static void
|
||||||
|
usage(void)
|
||||||
|
{
|
||||||
|
- fprintf(stdout, "Usage: hccontrol -n HCI_node_name [-h] cmd [p1] [..]]\n");
|
||||||
|
+ fprintf(stdout, "Usage: hccontrol -n interface [-h] cmd [p1] [..]]\n");
|
||||||
|
exit(255);
|
||||||
|
} /* usage */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user