1994-05-26 06:35:07 +00:00
|
|
|
.\" Copyright (c) 1990, 1991, 1993
|
|
|
|
.\" The Regents of the University of California. 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.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.
|
|
|
|
.\"
|
|
|
|
.\" @(#)startslip.1 8.1 (Berkeley) 6/5/93
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1994-05-26 06:35:07 +00:00
|
|
|
.\"
|
|
|
|
.Dd June 5, 1993
|
|
|
|
.Dt STARTSLIP 1
|
|
|
|
.Os BSD 4.4
|
|
|
|
.Sh NAME
|
|
|
|
.Nm startslip
|
|
|
|
.Nd dial up and login to a slip server
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 16:52:27 +00:00
|
|
|
.Nm
|
1994-05-26 06:35:07 +00:00
|
|
|
.Op Fl d
|
1994-12-04 12:26:01 +00:00
|
|
|
.Op Fl b Ar speed
|
2001-02-01 16:38:02 +00:00
|
|
|
.Oo
|
1995-09-14 19:03:20 +00:00
|
|
|
.Fl s Ar string1
|
2001-02-01 16:38:02 +00:00
|
|
|
.Op Fl s Ar string2 Op Ar ...\&
|
|
|
|
.Oc
|
1995-09-14 19:03:20 +00:00
|
|
|
.Op Fl h
|
1995-09-15 20:06:50 +00:00
|
|
|
.Op Fl l
|
1995-09-20 04:56:09 +00:00
|
|
|
.Op Fl L
|
1994-05-26 06:35:07 +00:00
|
|
|
.Op Fl A Ar annexname
|
1994-12-04 12:26:01 +00:00
|
|
|
.Op Fl U Ar upscript
|
|
|
|
.Op Fl D Ar downscript
|
1995-09-14 19:03:20 +00:00
|
|
|
.Op Fl t Ar script_timeout
|
1995-09-15 20:06:50 +00:00
|
|
|
.Op Fl W Ar maxtries
|
1995-09-14 19:03:20 +00:00
|
|
|
.Op Fl w Ar retry_pause
|
1995-09-17 21:47:24 +00:00
|
|
|
.Op Fl K Ar keepalive
|
|
|
|
.Op Fl O Ar outfill
|
1995-09-18 14:01:11 +00:00
|
|
|
.Op Fl S Ar unit
|
1998-08-03 06:32:57 +00:00
|
|
|
.Ar device user password
|
1994-05-26 06:35:07 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm Startslip
|
|
|
|
opens the specified
|
|
|
|
.Ar device .
|
1995-09-15 20:06:50 +00:00
|
|
|
Once carrier is asserted (if modem control is enabled)
|
1998-08-03 06:32:57 +00:00
|
|
|
.Nm
|
1994-05-26 06:35:07 +00:00
|
|
|
attempts to login as the specified
|
|
|
|
.Ar user
|
|
|
|
with the given
|
|
|
|
.Ar password .
|
1995-09-15 20:06:50 +00:00
|
|
|
Standard login: & Password: scheme assumed unless Annex option
|
|
|
|
specified (see
|
|
|
|
.Fl A ) .
|
|
|
|
If successful, it puts the device into the slip line discipline,
|
|
|
|
calls
|
|
|
|
.Ar upscript
|
|
|
|
and goes to wait mode.
|
|
|
|
If carrier drops (modem control enabled) or a
|
1994-05-26 06:35:07 +00:00
|
|
|
.Dv SIGHUP
|
|
|
|
is sent to
|
2000-11-20 16:52:27 +00:00
|
|
|
.Nm ,
|
1995-09-14 19:03:20 +00:00
|
|
|
it closes the device, calls
|
|
|
|
.Ar downscript
|
|
|
|
and attempts to repeat the dialup and login sequence.
|
|
|
|
If a
|
|
|
|
.Dv SIGTERM
|
|
|
|
is send to
|
2000-11-20 16:52:27 +00:00
|
|
|
.Nm ,
|
1995-09-14 19:03:20 +00:00
|
|
|
it closes the device, calls
|
|
|
|
.Ar downscript
|
|
|
|
and exits.
|
|
|
|
When
|
1998-08-03 06:32:57 +00:00
|
|
|
.Nm
|
1995-09-14 19:03:20 +00:00
|
|
|
called twice on the same device, previous copy killed by a
|
|
|
|
.Dv SIGTERM
|
|
|
|
before any operation.
|
1994-05-26 06:35:07 +00:00
|
|
|
.Pp
|
1998-08-03 06:32:57 +00:00
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width indent
|
1994-05-26 06:35:07 +00:00
|
|
|
.It Fl d
|
|
|
|
.Nm Startslip
|
|
|
|
prints out debugging information about what it is trying to do.
|
1994-12-04 12:26:01 +00:00
|
|
|
.It Fl b Ar speed
|
1998-08-03 06:32:57 +00:00
|
|
|
Determine the baud rate used for
|
|
|
|
.Ar device ,
|
|
|
|
default value is 9600.
|
1995-09-14 19:03:20 +00:00
|
|
|
.It Fl t Ar script_timeout
|
|
|
|
Set login script timeout in seconds, default value is 90.
|
|
|
|
.It Fl w Ar retry_pause
|
1995-09-15 20:06:50 +00:00
|
|
|
Set connecting retry pause in seconds (increased from one retry to another),
|
1995-09-14 19:03:20 +00:00
|
|
|
default value is 60.
|
1995-09-15 20:06:50 +00:00
|
|
|
.It Fl W Ar maxtries
|
|
|
|
Set maximum number of connection retries for one session,
|
|
|
|
default value is 6.
|
|
|
|
Value 0 means infinite count.
|
1995-09-20 04:56:09 +00:00
|
|
|
.It Fl s Ar stringN
|
1994-05-26 06:35:07 +00:00
|
|
|
The optional
|
1995-09-20 04:56:09 +00:00
|
|
|
.Ar stringN
|
1994-05-26 06:35:07 +00:00
|
|
|
is written to
|
|
|
|
.Ar device .
|
1995-09-14 19:03:20 +00:00
|
|
|
Return character is added automatically.
|
1994-05-26 06:35:07 +00:00
|
|
|
For a dialup modem,
|
|
|
|
the string is used to specify a dial sequence.
|
1995-09-20 04:56:09 +00:00
|
|
|
No string written by default.
|
1995-09-14 19:03:20 +00:00
|
|
|
You can specify several
|
|
|
|
.Fl s Ar stringN
|
|
|
|
arguments to use with each try, f.e. several host phone numbers.
|
1994-05-26 06:35:07 +00:00
|
|
|
.It Fl A Ar annexname
|
|
|
|
.Nm Startslip
|
|
|
|
assumes it is connecting to a Xylogics Annex box and engages in an
|
|
|
|
appropriate dialog using the
|
|
|
|
.Ar user
|
|
|
|
and
|
1998-08-03 06:32:57 +00:00
|
|
|
.Ar password
|
1994-05-26 06:35:07 +00:00
|
|
|
arguments.
|
|
|
|
The
|
|
|
|
.Ar annexname
|
|
|
|
argument is a string that is used to match against the Annex prompt
|
|
|
|
to determine when a connection has been established.
|
1995-09-14 19:03:20 +00:00
|
|
|
.It Fl h
|
|
|
|
Use hardware (CTS/RTS) flow control for
|
1994-05-26 06:35:07 +00:00
|
|
|
.Ar device .
|
1995-09-14 19:03:20 +00:00
|
|
|
Default value is no flow control.
|
1995-09-15 20:06:50 +00:00
|
|
|
.It Fl l
|
|
|
|
Disable modem control (waiting for carrier and carrier drop sense) for
|
|
|
|
.Ar device .
|
|
|
|
Modem control is enabled by default.
|
1994-12-04 12:26:01 +00:00
|
|
|
.It Fl U Ar upscript
|
1998-08-03 06:32:57 +00:00
|
|
|
Specify a script to run when a SLIP interface becomes connected. This may
|
|
|
|
contain
|
|
|
|
.Xr ifconfig 8 ,
|
|
|
|
.Xr route 8 ,
|
|
|
|
and other appropriate commands. The arguments that
|
1995-09-15 16:41:10 +00:00
|
|
|
are passed to the script are "slX up".
|
1998-08-03 06:32:57 +00:00
|
|
|
Default value is
|
|
|
|
.Pa /sbin/ifconfig .
|
1995-09-15 16:41:10 +00:00
|
|
|
Dial sequence number (see
|
|
|
|
.Fl s )
|
|
|
|
passed via
|
1998-08-03 06:32:57 +00:00
|
|
|
.Ev LINE
|
1995-09-15 16:41:10 +00:00
|
|
|
environment variable.
|
1994-12-04 12:26:01 +00:00
|
|
|
.It Fl D Ar downscript
|
1998-08-03 06:32:57 +00:00
|
|
|
Specify a script to run when a SLIP connection goes away. The arguments that
|
|
|
|
are passed to the script are "slX down". Default value is
|
|
|
|
.Pa /sbin/ifconfig .
|
1995-09-15 16:41:10 +00:00
|
|
|
Dial sequence number (see
|
|
|
|
.Fl s )
|
|
|
|
passed via
|
1998-08-03 06:32:57 +00:00
|
|
|
.Ev LINE
|
1995-09-15 16:41:10 +00:00
|
|
|
environment variable.
|
1995-09-17 21:47:24 +00:00
|
|
|
.It Fl K Ar keepalive
|
2000-03-01 11:27:47 +00:00
|
|
|
Set SLIP "keep alive" timeout in seconds.
|
|
|
|
If FRAME_END not received during this
|
|
|
|
time period, a reconnect will occur.
|
|
|
|
Active "out fill" timeout expected from other
|
1995-09-17 21:47:24 +00:00
|
|
|
side.
|
|
|
|
Default value is no timeout.
|
|
|
|
.It Fl O Ar outfill
|
2000-03-01 11:27:47 +00:00
|
|
|
Set SLIP "out fill" timeout in seconds.
|
|
|
|
It causes at least one FRAME_END
|
1996-01-29 23:52:43 +00:00
|
|
|
to be sent during this timeout.
|
1995-09-17 21:47:24 +00:00
|
|
|
Needed for "keep alive" timeout on other side.
|
|
|
|
Default value is no timeout.
|
1995-09-18 14:01:11 +00:00
|
|
|
.It Fl S Ar unit
|
2000-03-01 11:27:47 +00:00
|
|
|
Set SLIP unit number directly.
|
|
|
|
Use with caution, no check for two
|
1995-09-18 14:01:11 +00:00
|
|
|
interfaces with same number made.
|
|
|
|
Default is dynamic assignment.
|
1995-09-20 04:56:09 +00:00
|
|
|
.It Fl L
|
2000-03-01 11:27:47 +00:00
|
|
|
Use uucp-style device locking.
|
|
|
|
You need it unless you start
|
1998-08-03 06:32:57 +00:00
|
|
|
.Nm
|
1995-09-20 04:56:09 +00:00
|
|
|
from external program which already does uucp locking.
|
|
|
|
Default case is no uucp locking to satisfy such programs.
|
1994-05-26 06:35:07 +00:00
|
|
|
.El
|
1995-09-14 19:03:20 +00:00
|
|
|
.Sh FILES
|
1995-09-15 20:06:50 +00:00
|
|
|
.Bl -tag -width /var/run/startslip.<device>.pid -compact
|
|
|
|
.It Pa /var/run/startslip.<device>.pid
|
1995-09-14 19:03:20 +00:00
|
|
|
pid stored here
|
1998-08-03 06:32:57 +00:00
|
|
|
.It Pa /usr/share/examples/startslip/*
|
2000-12-18 15:16:24 +00:00
|
|
|
.El
|
1994-05-26 06:35:07 +00:00
|
|
|
.Sh SEE ALSO
|
1995-09-20 04:56:09 +00:00
|
|
|
.Xr uustat 1 ,
|
1997-01-13 00:25:51 +00:00
|
|
|
.Xr slattach 8 ,
|
1998-08-03 06:32:57 +00:00
|
|
|
.Xr sliplogin 8
|
1994-05-26 06:35:07 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
1998-08-03 06:32:57 +00:00
|
|
|
.Nm
|
1994-05-26 06:35:07 +00:00
|
|
|
appeared in
|
|
|
|
.Bx 4.4 .
|