Juanito
Group: Members
Posts: 1601
Joined: Sep. 2005 |
|
Posted: Feb. 17 2008,04:28 |
|
I'm running dsl-3.4.11 on a desktop that acts as a printer/scanner/music server for the family. For some reason, the desktop loses its network connection to the router a couple of times a week (I originally thought this was due to WDef's citytime, but no ). If I'm around this is not a big deal, but if the desktop loses the connection to the network whilst I'm away, then the family can't print until I get back.
I'd like to write a script that checks for the network connection periodically and invokes the dsl panel netcardconf script to reconnect the network if it finds it down (and restart cupsd, smbd, nmbd, saned, firefly...)
The problem is that I cannot figure out what to check (ping the router?) or how to do it in scripting terms. I'd be grateful for any ideas...
|