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
|
|
|
|
.\"
|
|
|
|
.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
|
|
|
|
.Nm startslip
|
|
|
|
.Op Fl d
|
1994-12-04 12:26:01 +00:00
|
|
|
.Op Fl b Ar speed
|
1995-09-14 19:03:20 +00:00
|
|
|
[
|
|
|
|
.Fl s Ar string1
|
|
|
|
.Op Fl s Ar string2 Op Ar ...
|
|
|
|
]
|
|
|
|
.Op Fl h
|
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 p Ar father_pause
|
|
|
|
.Op Fl t Ar script_timeout
|
|
|
|
.Op Fl w Ar retry_pause
|
1994-05-26 06:35:07 +00:00
|
|
|
.Ar device user passwd
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm Startslip
|
|
|
|
opens the specified
|
|
|
|
.Ar device .
|
|
|
|
.Pp
|
|
|
|
Once carrier is asserted
|
|
|
|
.Nm startslip
|
|
|
|
attempts to login as the specified
|
|
|
|
.Ar user
|
|
|
|
with the given
|
|
|
|
.Ar password .
|
|
|
|
If successful, it puts the device into the slip line discipline.
|
1995-09-14 19:03:20 +00:00
|
|
|
If carrier drops or a
|
1994-05-26 06:35:07 +00:00
|
|
|
.Dv SIGHUP
|
|
|
|
is sent to
|
|
|
|
.Nm startslip ,
|
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
|
|
|
|
.Nm startslip ,
|
|
|
|
it closes the device, calls
|
|
|
|
.Ar downscript
|
|
|
|
and exits.
|
|
|
|
When
|
|
|
|
.Nm startslip
|
|
|
|
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
|
|
|
|
Available options:
|
|
|
|
.Bl -tag -width Ar
|
|
|
|
.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
|
|
|
|
Determines the baud rate used for
|
|
|
|
.Ar device .
|
1995-09-14 19:03:20 +00:00
|
|
|
Default value is 9600.
|
|
|
|
.It Fl t Ar script_timeout
|
|
|
|
Set login script timeout in seconds, default value is 90.
|
|
|
|
.It Fl w Ar retry_pause
|
|
|
|
Set retry pause in seconds (increased from one try to another),
|
|
|
|
default value is 60.
|
|
|
|
.It Fl p Ar father_pause
|
|
|
|
Set after fork father pause in seconds, default is no pause there.
|
|
|
|
.It Fl s Ar string1
|
1994-05-26 06:35:07 +00:00
|
|
|
The optional
|
|
|
|
.Ar string
|
|
|
|
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-14 19:03:20 +00:00
|
|
|
Default string is return character.
|
|
|
|
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
|
|
|
|
.Ar passwd
|
|
|
|
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.
|
1994-12-04 12:26:01 +00:00
|
|
|
.It Fl U Ar upscript
|
|
|
|
Specifies a script to run when a SLIP interface becomes connected. This may
|
|
|
|
contain ifconfig, route, and other appropriate commands. The arguments that
|
1995-09-14 19:03:20 +00:00
|
|
|
are passed to the script are "slX up". Default value is "/sbin/ifconfig".
|
1994-12-04 12:26:01 +00:00
|
|
|
.It Fl D Ar downscript
|
|
|
|
Specifies a script to run when a SLIP connection goes away. The arguments that
|
1995-09-14 19:03:20 +00:00
|
|
|
are passed to the script are "slX down". Default value is "/sbin/ifconfig".
|
1994-05-26 06:35:07 +00:00
|
|
|
.El
|
1995-09-14 19:03:20 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /var/run/startslip-<device>.pid -compact
|
|
|
|
.It Pa /var/run/startslip-<device>.pid
|
|
|
|
pid stored here
|
1994-05-26 06:35:07 +00:00
|
|
|
.Sh SEE ALSO
|
1995-09-14 19:03:20 +00:00
|
|
|
.Xr sliplogin 8 ,
|
1995-09-14 23:57:58 +00:00
|
|
|
.Xr slattach 8 ,
|
|
|
|
/usr/share/examples/startslip
|
1994-05-26 06:35:07 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm startslip
|
|
|
|
appeared in
|
|
|
|
.Bx 4.4 .
|