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

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.


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

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 >/dev/null

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

Your Answer


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.