Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8609 - PPPD doesn't run scripts
Summary: PPPD doesn't run scripts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Hannes Mehnert (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-01 08:01 UTC by Guillaume APOSTOLY
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume APOSTOLY 2002-10-01 08:01:24 UTC
Hi,

It seems that the ppp scripts as included on the debian distribution by example 
have no equivalent on Gentoo.
It's missing me a lot, especially because of the lack of automated "ip-up" 
scripts.
Under debian, there's /etc/ppp/ip-up that is launched everytime a ppp 
connection is coming up and that launch everyscript that is in /etc/ppp/ip-up.d 
directory, providing them usefull variables (IP adresse given, speed, etc.). 
This is very good to "publish" an IP on startup by example.

On my Gentoo distribution, i've added my old debian "/etc/ppp/ppp_on_boot" to 
run-level "default", and after it, a scripts that runs asynchronously (to 
avoid "sticking" my bootup for the 6 or 10 seconds needed by PPP to come up), 
that loops until he find that a ppp connection comes up in ifconfig.
It works, but it's dirty, and : 

What if the connection is closed, for any reason (an error, or every 24 hours 
cause of my ISP), and remounted (via "persist" option) ?
Then, no scripts are launched.

So why not provide scripts like debian's ones ?

Thanks by advance, I can do tests if needed (i'm using pppd with plugin 
pppoatm).

And I don't want to switch back to Debian ;o) !
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2002-10-15 07:37:50 UTC
well, ip-up is executed by pppd, i encountered the same problems, my mistake was having #/bin/bash instead of #!/bin/bash in the first line of /etc/ppp/ip-up. please check this. well, debian has in his /etc/ppp/ip-up a "run-scripts /etc/ppp/ip-up.d/", which will execute all files in /etc/ppp/ip-up.d/, but i don't know if this is really necessary (i don't need it). 
Comment 2 phoen][x 2002-10-23 09:47:16 UTC
Here another ppp bug for you, hannes.

-phoen][x-
Comment 3 Guillaume APOSTOLY 2002-10-23 09:57:10 UTC
I haven't had the time to try it (i will asap), but i think that Hannes last 
comment should work ...
Comment 4 Hannes Mehnert (RETIRED) gentoo-dev 2002-10-23 10:07:39 UTC
well, i think we should ship our ppp package with a default ip-up script. 
Comment 5 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-13 16:24:06 UTC
ok, i added a sample ip-up script to gentoo, please test and if it works, please mark 
this bug as resolved. 
Comment 6 Guillaume APOSTOLY 2002-11-15 02:15:34 UTC
tested, with success !

Thanks and sorry for the delay.

Regards,

Guillaume