old-www/HOWTO/PPP-HOWTO/x1200.html

208 lines
3.5 KiB
HTML

<HTML
><HEAD
><TITLE
>Editing the supplied PPP startup scripts</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.52"><LINK
REL="HOME"
TITLE="Linux PPP HOWTO"
HREF="index.html"><LINK
REL="UP"
TITLE="Automating your connections - Creating the connection scripts"
HREF="automate.html"><LINK
REL="PREVIOUS"
TITLE="The ppp-on script"
HREF="x1188.html"><LINK
REL="NEXT"
TITLE="What a Chat script means..."
HREF="x1219.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
><A
HREF="http://www.linuxports.com/howto/ppp"
TARGET="_top"
>Linux PPP HOWTO</A
></TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x1188.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 18. Automating your connections - Creating the connection scripts</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x1219.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN1200"
>18.3. Editing the supplied PPP startup scripts</A
></H1
><P
>As the new scripts come in two parts, we will edit them in turn.</P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN1203"
>18.3.1. The ppp-on script</A
></H2
><P
>You will need to edit the script to reflect YOUR user name at your ISP,
YOUR password at your ISP, and the telephone number of your ISP.</P
><P
>Each of the lines like "<TT
CLASS="LITERAL"
>TELEPHONE=</TT
>" actually set up shell variables that
contain the information to the right of the '=' (excluding the comments
of course). So edit each of these lines so it is correct for your ISP
and connection.</P
><P
>Also, as you are setting the IP number (if you need to) in the
<TT
CLASS="LITERAL"
>/etc/ppp/options</TT
> file, DELETE the line that says</P
><P
>&#13;<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>$LOCAL_IP:$REMOTE_IP \</PRE
></TD
></TR
></TABLE
>&#13;</P
><P
>Also, make sure that the shell variable DIALER_SCRIPT points at
the full path and name of the dialer script that you are actually going
to use. So, if you have moved this or renamed the script,
make sure you edit this line correctly in the <TT
CLASS="LITERAL"
>ppp-on</TT
> script!</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN1214"
>18.3.2. The ppp-on-dialer script</A
></H2
><P
>This is the second of the scripts that actually brings
up our ppp link.</P
><P
>Note: a chat script is normally all on one line. the backslashes are
used to allow line continuations across several physical lines (for
human readability) and do not form part of the script itself.</P
><P
>However, it is very useful to look at it in detail so
that we understand what it is actually (supposed) to be doing!</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x1188.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x1219.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The ppp-on script</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="automate.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>What a Chat script means...</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>