summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Crane <steve.crane@rococosoft.com>2003-02-12 12:34:16 +0000
committerStephen Crane <steve.crane@rococosoft.com>2003-02-12 12:34:16 +0000
commit427f4bbc07f40706dd5e3c5500f14c63a160c979 (patch)
treedfb3da54a77d356eafa78ef8db3e9fd8e7901ff4
parente4be7ba24dd532b782e60ff7d3bcdfd87989cc37 (diff)
describe optional arguments
-rw-r--r--tools/hciattach.813
-rw-r--r--tools/hciattach.c2
2 files changed, 12 insertions, 3 deletions
diff --git a/tools/hciattach.8 b/tools/hciattach.8
index 812c40dc..0dadec99 100644
--- a/tools/hciattach.8
+++ b/tools/hciattach.8
@@ -3,7 +3,7 @@
hciattach \- attach serial devices via UART HCI to BlueZ stack
.SH SYNOPSIS
.B hciattach
-<
+[ -n ] [ -p ] [ -t timeout ] <
.I tty
> <
.I type
@@ -20,6 +20,15 @@ Hciattach is used to attach a serial UART to the Bluetooth stack as HCI
transport interface.
.SH OPTIONS
.TP
+.BI -n
+Don't detach from controlling terminal.
+.TP
+.BI -p
+Print the PID when detaching.
+.TP
+.BI -t timeout
+Specify an initialization timeout. (Default is 5 seconds.)
+.TP
.I <tty>
This specifies the serial device to attach. A leading
.B /dev
@@ -102,4 +111,4 @@ instead.
.SH AUTHORS
Written by Maxim Krasnyansky <maxk@qualcomm.com>
.PP
-man page by Nils Faerber <nils@kernelconcepts.de>
+Manual page by Nils Faerber <nils@kernelconcepts.de>
diff --git a/tools/hciattach.c b/tools/hciattach.c
index f30ae033..b6aa7376 100644
--- a/tools/hciattach.c
+++ b/tools/hciattach.c
@@ -815,7 +815,7 @@ static void usage(void)
{
printf("hciattach - HCI UART driver initialization utility\n");
printf("Usage:\n");
- printf("\thciattach <tty> <type | id> [speed] [flow]\n");
+ printf("\thciattach [-n] [-p] [-t timeout] <tty> <type | id> [speed] [flow]\n");
printf("\thciattach -l\n");
}