🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #55142

PPP hassles

#55142
From: Zebee Johnstone
Date: Tue, 29 Jul 1997 00:00
67 lines
2627 bytes
I have a problem with PPP on RedHat 4.1.

I'm running ppp version 2.2.

If I start ppp using my old script from 3.0.3 it goes fine.

If I start it with the 4.1 scripts, it dies saying 
"Your kernel does not support PPP".  I have PPP compiled
in (not a module) and dmesg shows:

PPP: version 2.2.0 (dynamic channel allocation)
PPP Dynamic channel allocation code copyright 1995 Caldera, Inc.
PPP line discipline registered.
PPP: ppp line discipline successfully unregistered
CSLIP: code copyright 1989 Regents of the University of California
PPP: version 2.2.0 (dynamic channel allocation)
PPP Dynamic channel allocation code copyright 1995 Caldera, Inc.
PPP line discipline registered.
registered device ppp0

what's worse is that it *has* worked - I have had the new script
fire up PPP happily.  So why is it whinging that ppp is not
in the kernel?  

And why does the old script work fine?  Is this a chat thingy
in disguise?

The script that works is basically:
cat $DIPSCRIPT | sed {bunch of variables} > /tmp/dip.$$

chmod 700 /tmp/dip.$$
sh /tmp/dip.$$ &
sleep 10 
rm /tmp/dip.$$
sleep 121


DIPSCRIPT is in fact a straight chat script, I'm not using Dip.
/usr/sbin/pppd -detach connect '\
        /usr/sbin/chat -v ABORT BUSY ABORT "NO CARRIER" ABORT ERROR ""\
        AT OK ATM1 OK ATDT'@@@phone-number@@@' LAPM "" ame: @@@login-id@@@  \
        word: @@@password@@@ @@@connect-string@@@ ""' \
        /dev/cua1 38400 debug crtscts modem lock defaultroute

The script that fails is the standard RedHAt 4.2 one:
echo $$ > /var/run/ifup-ppp-$DEVICE.pid
while : ; do
          (logger -p daemon.info -t ifup-ppp \
              "pppd started for $DEVICE on $MODEMPORT at $LINESPEED" &)&
                          /usr/sbin/pppd -detach $opts $MODEMPORT $LINESPEED \
                              connect "/usr/sbin/chat -v -f /etc/sysconfig/netw
ork-scripts/chat-$DEVICE"


The diff in the chat scripts is no crtscts lock or debug in the new
one (set in $opts)

So.. any clues?

Zebee


-- 
Zebee Johnstone (zebee@zip.com.au) Proud holder of aus.motorcycles Poser Permit #1.  
"You don't own an Italian motorcycle 
        - you merely have the privilege of paying its bills."
Technical Details
Message-ID: <slrn5trcab.u05.zebee@zipper.zip.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,2ebc2290d4193837,start
X-Google-Attributes: gid102983,public
From: zebee@zipper.zip.com.au (Zebee Johnstone)
Subject: PPP hassles
Date: 1997/07/29
Message-ID: <slrn5trcab.u05.zebee@zipper.zip.com.au>
X-Deja-AN: 260124812
Organization: Zip Internet Professionals Pty Ltd
Newsgroups: aus.computers.linux