in reply to Handling a PPP connection

In additon to the other scripts already mentioned, you might find mlong's ppp-keepalive script useful.