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) !
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).
Here another ppp bug for you, hannes. -phoen][x-
I haven't had the time to try it (i will asap), but i think that Hannes last comment should work ...
well, i think we should ship our ppp package with a default ip-up script.
ok, i added a sample ip-up script to gentoo, please test and if it works, please mark this bug as resolved.
tested, with success ! Thanks and sorry for the delay. Regards, Guillaume