Bekijk de volledige versie : Script for scheduling pppoe connections?

13-03-2005, 11:41
Could someone give me a hint to create a script for scheduling my ISP's connection (pppoe protocol)?

In fact, my isp disconnects me every 36h... witch is "problematic" because with such period, it may occure when I'm using applications like Skype.

So, I want to disconnect (and reconnect immediately) every 24h at 5 am.

I've found on this forum the "killall -1 pppd" command. I've tried it... It does perfectly the job but I don't know how to schedule it...


13-03-2005, 21:42
Also... I've read that cron could do the scheduled job.

But is it possible to use the crond (without running full busybox) on stock firmware?

13-03-2005, 21:56
As of cron is by default part of the firmware AFAIK.

13-03-2005, 22:51
Well... I'm running fw beta and don't want to go back because this one resolves all my wireless issues between fw and the latest Intel 2200BG wi-fi card driver!

So, do you thing it's possible to run crond on this asus stock firmware?

Or is'nt it possible to make a loop that check the time and that run the "killall -1 pppd" command when needed?


14-03-2005, 07:25
You could also add a never ending loop at the end of the post-boot script and do the stopping and starting from there...