]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - usr.sbin/uhsoctl/uhsoctl.1
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / usr.sbin / uhsoctl / uhsoctl.1
1 .\" Copyright (c) 2008-2009 Fredrik Lindberg
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 .\"
24 .\" $FreeBSD$
25 .\"
26 .Dd Aug 12, 2009
27 .Dt UHSOCTL 1
28 .Os
29 .Sh NAME
30 .Nm uhsoctl
31 .Nd connection utility for Option based devices
32 .Sh SYNOPSIS
33 .Nm
34 .Op Fl a Ar apn
35 .Op Fl c Ar cid
36 .Op Fl p Ar pin
37 .Op Fl u Ar username
38 .Op Fl k Ar password
39 .Op Fl r Ar path
40 .Op Fl f Ar path
41 .Op Fl b | n
42 .Ar interface
43 .Nm
44 .Fl d
45 .Ar interface
46 .Nm
47 .Fl h
48 .Sh DESCRIPTION
49 .Nm
50 is a small connection utility for Option N.V. devices that are based on Options
51 packet interface and uses proprietary AT_* calls to establish connections.
52 The utility (tries to) configure both default route and name servers
53 (/etc/resolv.conf).
54 .Pp
55 By default
56 .Nm
57 detaches from the terminal upon on a successful connection, a few command-line
58 options exists that allows this behavior to be changed.
59 .Pp
60 .Nm
61 attempts to find a usable controlling serial port based on the provided network
62 interface.
63 If this fails you might specify a serial port manually.
64 .Sh OPTIONS
65 .Bl -tag -width XXXX
66 .It Fl a Ar apn
67 Specify APN to connect to.
68 .It Fl c Ar cid
69 Specify CID (Context ID) to use, by default CID 1 is used.
70 If an APN has been configured once, it's enough to specify the CID used for
71 further accesses.
72 .It Fl p Ar pin
73 Specify SIM PIN.
74 .It Fl u Ar username
75 Specify username.
76 .It Fl k Ar password
77 Specify username.
78 .It Fl r Ar path
79 Path to resolv.conf, default /etc/resolv.conf.
80 Use /dev/null to disable updating of name servers.
81 .It Fl f Ar path
82 Explicitly set the serial port to use as controlling terminal.
83 Might be needed if the automatic detection fails.
84 .It Fl b
85 Fork into background directly, before a connection has been established.
86 .It Fl n
87 Never fork into background, run entirely in foreground.
88 .El
89 .Sh EXAMPLES
90 Connect to
91 .Dq Li apn.example.com
92 on interface
93 .Dq Li uhso0
94 and use PIN
95 .Dq 1234
96 to enable the SIM card.
97 .Dl "uhsoctl -a apn.example.com -p 1234 uhso0"
98 .Pp
99 Disconnect from a previously established connection.
100 .Dl "uhsoctl -d uhso0"
101 .Sh SEE ALSO
102 .Xr uhso 4