You could set up a cron
job that would ping
your router every 5mins or so. If it doesn't receive a reply, then it should call /etc/init.d/networking restart
Hint: Look at the outputs of
ping -c1 IP.OF.YOUR.ROUTER | grep "0 received"
when your router is connecting and
ping -c1 IP.NOTON.YOUR.NETWORK | grep "0 received"
One returns nothing, the other some text. So you could do a test on the result, and then call /etc/init.d/networking restart
Have fun, and Welcome to LQ!