how to start pppd when i connect the device

how to start pppd when i connect the device

Post by Hanno Rei » Sun, 03 Jun 2001 00:07:03



hi!

I connected a PDA to Linux via ttyS0. I have to start "pppd call everex" to
start the connection. How can that be done automatically, when the device is
connected?

thx
    Hanno

 
 
 

how to start pppd when i connect the device

Post by Dean Thompso » Sun, 03 Jun 2001 00:25:46


Hi!,

Quote:> I connected a PDA to Linux via ttyS0. I have to start "pppd call everex" to
> start the connection. How can that be done automatically, when the device
> is connected?

I don't think it can be.  It is a bit of a catch 22.  Your linux box needs to
know that it is there before it starts the script which forms the connection.
In order to know that it is there, it needs to have the connection formed.
The only hope would be if an interrupt was triggered by the device when it was
connected.  If you could catch that interrupt then you would be able to start
the script, but I don't think it will be that easy to catch the interrupt if
one exists at all.

See ya

Dean Thompson

--
+____________________________+____________________________________________+

| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

 
 
 

1. Help: PPPD Connects; Reboot; PPPD doesn′t connect?

Hi everybody

I just installed SuSE Linux 6.0 from an ftp image.
Everything went well until i tried to set up my
internet connection.  I am using an US Robotics
56K external modem. Mi machine is an old Pentium
166 with 16 Mb RAM,2.0 Gb HD.

I hope someone can help me with this problem:
When I first set up the internet connection with
the default configuration, it worked quite well.
I could ping another machines on the internet and
used Lynx to browse some websites. So I thougt
everything was OK and disabled the "Debugging"
option in PPPD and diald too using Yast.

So I was done, turn off the machine and went
home. The next day I started Linux, fired up the
ppp-up script and... nothing happens
So go back to enable debbuging, and from the
messages I could see that the modem was
connecting correctly, but the ppp connection went
down after sending (more or less) 7 "LCP ConfReq"
packages.
Next I tried minicom, connected manually and I
could see some data coming in,just as I read in
the PPP-HOWTO, so the server is OK.
"It's diald" I thought, so go back and enable it.
At this point I had exactly the same
configuration that worked one day ago... only
that this time it didn't.

Please, someone tell me what i am doing wrong, I
reinstalled everything, read the HOWTO's and got
the same problem: Connection OK with the default
configuration, tweak some things and you still
can get a connection, reboot and no matter what
you do (save from reinstalling everything again),
you won't connect anymore.

Any help would be really appreciated

Ramiro

Sent via Deja.com http://www.deja.com/
Before you buy.

2. the Switch Blog...

3. Alcatel ADSL probs - pppd[1097]: connect(0.38): No such device

4. Meaning of errorcodes of make 1 , 2 and 127

5. 1 * kaBayoadH-pppd keeps connecting when another modem connects

6. RFC3168, section 6.1.1.1 - ECN and retransmit of SYN

7. Run script after pppd is connected (REALLY connected)?

8. Multi User Minimums

9. pppd keeps connecting when another modem connects

10. connect SW to s pseudo UART device instead of real serial device

11. lpr: connect: Connect refused Jobs queued, but cannot start daemon

12. Connecting IBM channel connect devices to a SUN box - URGENT Q

13. [Fwd: lpr: connect: Connect refused Jobs queued, but cannot start daemon]