I see now. Thanks for the clarification

Yes, it is a bit mysterious in fact, as you can see in r17527 (the patch I referenced), it does not reference ppp directly at all.pbix wrote:geekgirl,
BTW, do you know how pppd is started in OpenWRT? This is somewhat of a mystery to me. Somehow pppd is started before any scripts in /etc/init.d are executed.
Normally, at boot (or start) I think this is how it happens (simplified):
1. /etc/init.d/network, at boot() and start(), does this:
Code: Select all
include /lib/network
a. /lib/network/config.sh usually gets called first, since files in /lib/network are loaded in alphabetical order
b. /lib/network/ppp.sh gets loaded, where you can see the start_pppd() routine which invokes /usr/sbin/pppd, followed by:
c. pppoa.sh and/or pppoe.sh get(s) loaded, and they both call start_pppd()
hope this helps