You are not logged in.

#1 2010-01-18 17:34:28

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Suggestions for automatically restarting a stale internet connection

I'm having to use my box from work at the moment but my setup has a funny habit of losing its internet connectivity.  This is easily resolved by repairing the connection in Windows or restarting the relevant network profile.

The problem is once I am at work the only notification that my interwebs has died is when I can't connect for a remote session and obviously without remote access I can't restart the network profile so I'm stuck for the day.

I've had a quick google and there are a few simple bash script via cron solutions:

http://www.linuxscrew.com/2009/04/02/ti … ilability/
http://www.linuxforums.org/forum/redhat … ll-up.html

Slightly more adventurous approach here:

http://www.unix.com/shell-programming-s … ivity.html

I can create the script and the cron myself no probs but first I wondered:

a) has anyone here done this already and wants to share their scripts? (rather than reinvent the wheel)
b) is there a more recognized way of doing this in Arch? (could netcfg support some sort of keep alive)
c) there's a few linux tools out there that do this but most seem distro/de specific or are gui only and require you to be at the machine - anyone implementing one with workarounds for Arch?
d) ping or wget seems an unfriendly way of checking the connection - do people have any alternative ideas?

Last edited by dtw (2010-01-18 17:35:37)

Offline

Board footer

Powered by FluxBB