🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #57274

help! with chat/pppd/cua1

#57274
From: Che Monro
Date: Thu, 07 Nov 1996 00:00
60 lines
1536 bytes

Hi, 

I'm having problems using chat/pppd to set up a ppp connecton to my ISP. I inclouse the (unedited) scrip that i am using below. As far as i acn tell, the scrip is OK, but all i get from the modem is SD/RD flashes, which implies to me that the serial port 
settings may not be correct. 

Ive also tried copying files of modem commands to /dev/cua0 with similar (lack of) results.

Can anyone help me?

Regards, 

Che

#!/bin/sh

#
#	ppp-on
#
#	Set up a PPP link
#

LOCKDIR=/var/spool/uucp
DEVICE=cua2
# DEVICE=ttyS2

PHONE=PHONE_NUMBER_TO_DIAL
USER=YOUR_USERNAME
PASSWORD=YOUR_PASSWORD
OUR_IP_ADDR=

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

fix-cua $DEVICE

(
    stty 115200 -tostop

    if 

        chat -v -t 60 ABORT "NO CARRIER" ABORT BUSY  "" ATZ OK 'AT&F0' OK 'AT&D2' OK ATDT$PHONE CONNECT "" ogin: $USER ssword: $PASSWORD

    then 
         exec pppd -d modem noipdefault -detach lock defaultroute : /dev/$DEVICE 
	sleep 10
	exit 
    else
	echo "PPP call failed" 1>&2
	exit 1



    fi
) < /dev/$DEVICE > /dev/$DEVICE 
# /root/my-ppp
Technical Details
Message-ID: <che.847358090@curie.dialix.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,70737af82a57c230,start
X-Google-Attributes: gid102983,public
From: che@curie.dialix.com.au (Che Monro)
Subject: help! with chat/pppd/cua1
Date: 1996/11/07
Message-ID: <che.847358090@curie.dialix.com.au>
X-Deja-AN: 195282657
organization: DIALix Services, Sydney, Australia.
newsgroups: aus.computers.linux