Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Where I live, there is power outage every few hours. This means my DSL WIFI routergets reset after 2-3 hours max. The network is secured and requires password to connect. So when the router resets and comes backup after a few minutes, my laptop (Ubuntu 10.04) doesnt auto reconnect to it. Instead I am presented with a password entry dialog box to connect to the network. How can this re-connection be made automatic? Is there some retry counts or timeout that I can set somewhere so that the network manager will try for at least 10 minutes to connect to this network before popping this dialog box.

Thanks.

share|improve this question
    
can any one help me with this? –  binW Aug 8 '12 at 10:12
add comment

1 Answer 1

Maybe not the cleanest way of doing this, but you could make a little script and let is execute every 5 min using cron. If pinging the router is not successful then the network manager is restarted.

ping -c 3 -W 10 192.168.2.1 >/dev/null

if [ $? -ne 0 ]; then
  service network-manager restart
  sleep 5
fi
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.