OpenWrt Forum Archive

Topic: Cron Job to automatically switch between different PPP accounts

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all

The system I am currently running requires me to continuously switch between different PPP accounts on my linksys WRT54GL as it is cheaper to buy 4x 10gig accounts then to buy one account with 40gigs

The best way i can think of to move this process into automation would be to have a cron job, that runs a contineous ping to an external website, when this ping times out more then 8 times, change ppp_username= and ppp_passwd= to the new PPP account as the failed pings would indicate that the current account is capped

Obviously it could be a number of other reasons such as the website that i am pinging is down (so i could ping a route-server, etc) but is this a possibility to create?

I have very little bash programming knowledge - please could you share you brainpower tongue

Thanks in advance for your help

Regards

Jared

Wrong section!

The discussion might have continued from here.