OpenWRT 10.03-RC6 Backfire continued: re-connect script

just for the logs, if you are disconnected by your ISP every 24 hours and you like this to happen during the night you will like this re-connect script for pppd based connections.

#!/bin/sh

killall -HUP pppd

if you like you just add it at 04:00 in the morning to your cron 🙂

0 4 * * * /path-to/re-connect.sh

not to forget the chmod u+x <path-to-script>/re-connect.sh

Enjoy.

Advertisements
This entry was posted in OpenWRT, WNDR 3700 v2. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s