[6576] in RedHat Linux List

home help back first fref pref prev next nref lref last post

picasso to colgate, ppp broken

daemon@ATHENA.MIT.EDU (Jim Millick)
Thu Nov 28 11:49:21 1996

From: jmillick@netcom.com (Jim Millick)
To: redhat-list@redhat.com
Date: Thu, 28 Nov 1996 08:48:10 -0800 (PST)
Cc: jmillick@netcom.com (Jim Millick)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

I upgraded from picasso to colgate yesterday.  It went fairly well,
except ppp's broken -- sounds like a common problem.

I've got the latest pppd installed:

$ rpm -qa |grep ppp

ppp-2.2.0f-2

I read over the archives before I upgraded, looking for gotcha's, I
noticed pppd had to be suid root, and that's done (chmod 4755
/usr/sbin/pppd).

I looked over the errata, didn't see anything.

I read the latest `Connecting Your Redhat Linux System to the World
using PPP', it mentioned modifying the supplied /usr/sbin/ppp-on,
which I'd done,with 3.0.3, calling my version `netup'.  I'm pretty
sure I didn't delete ppp-on, but it's not there any more -- I don't
know if the upgrade rm'd it or what happened???

At any rate, my netup script now bombs.  It looks as though the
options I used for chat in 3.0.3 are no longer valid, among other
things.

My script is as follows (the # in front of the userid is
specific to my ISP to start a ppp connection, also note that
Emacs inserts a \ to show a long line is wrapping, and I
copied this out of an Emacs buffer).

------

#!/bin/sh

#
#       ppp-on
#
#       Set up a PPP link
#
# Basic red hat script
#
#
# Basic red hat script
#
#

LOCKDIR=/var/lock
DEVICE=cua1

PHONE=*70,7571040
USER=#jmillick
PASSWORD=mypasswd
OUR_IP_ADDR=0.0.0.0

if [ -f $LOCKDIR/LCK..$DEVICE ]
then
    echo "PPP device is locked"
    exit 1
fi

fix-cua $DEVICE

(
    stty 38400 -tostop


    if chat -l LCK..$DEVICE ABORT "NO CARRIER" ABORT BUSY "" ATZ OK ATDT$PHONE \
CONNECT "" ogin: $USER ssword: \\q$PASSWORD
    then
        pppd asyncmap 0 -detach modem crtscts defaultroute mru 1500 $OUR_IP_ADD\
R: /dev/$DEVICE
        rm -f LCK..$DEVICE
        exit 0
    else
        echo "PPP call failed" 1>&2
        exit 1
    fi
) < /dev/$DEVICE > /dev/$DEVICE

-------

It chokes in at least two places.  The first time it bombed on the

fix-cua $DEVICE

line.  I wasn't sure what that did, I commented it out, and it then
choked on the:

    if chat -l LCK..$DEVICE ABORT "NO CARRIER" ABORT BUSY "" ATZ OK ATDT$PHONE
CONNECT "" ogin: $USER ssword: \\q$PASSWORD

apparently because of the -l option to chat:

# netup &
[1] 2300
# Usage: chat [-v] [-t timeout] [-r report-file] {-f chat-file | chat-script}
PPP call failed

Reviewing the chat man pages show there's no -l option to chat.

I'm not able to go through the mailing archives, except via lynx, and
the redhat www pages aren't very navigatible via lynx on this Sun box.

If anyone has a good ppp script for colgate I can modify, or other
advice, I'd appreciate it.

Thanks in advance,

        Jim

-- 



--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post