[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: About boot scripts and pppoe [was Dydns service]



Apparently, _Deboo ^_, on 05/10/2005 01:06 PM,typed:


I figured this out (or RTFMed). It was simple: ddclient -use=if ppp0 .
That's all that was needed and I put this in a script that scarts ppp
at bootup (a script under /etc/rc.boot) The only thing now is that
most of the times, pppd hasn't yet got an IP from the router and
ddclient starts up. I have given a sleep time for ddclient as 3 mintes
but even this much is less and it fails when the ppp0 IP takes more
time.

Same thing happens with ipmasq which also is started along with
ddclient. Then lots of ipmasq junk comes on the screen and it's hard
to type a command or even login ( i need to keep pressing Ctrl - L).
Is there a solution to this? Previously it never used to take long to
get  the IP address. Is there a way I can make this proicess faster? I
use pppoe.

And is there  way I can execute the scripts that I have under
/etc/rc.boot? Like the scripts under /etc/rcx.d hev a number
associated with them and when they get executed?

Regards,
Deboo



Shot in the dark:
I haven't really looked at this, but isn't there a method of listing ppp0 in /etc/network/interfaces? I keep getting this message at bootup that this is the newer method but I could be completely wrong. Now, if that is possible, you could just put
"up ddclient ...." or whatever the command you want to give
so that it is executed after ppp0 comes up (I assume ppp0 has an IP by the time is comes up else it doesn't come up at all).

Please take my comments above with a grain of salt. I mean to look into this one of these days and use the D-Link router I am using for something else while making an old Linux box as the gateway ...... one of these days :)

->HS


--
(Remove all underscores,if any, from my email address to get the correct one. Apologies for the inconvenience but this is to reduce spam.)




Reply to: