How to run script when MT is connected to pppoe

Hello,
How to execute script (just once) when pppoe connection is connected?

I need this to update dyndns IP with hostname. I have script for this, but I don’t know how to execute it when pppoe is connected.

Search the forum for ‘DynDNS Update Script’, it was explained many times.

HTH,