The wireless connection in my house unfortunately often disappears, requiring a wireless router reboot.
Making this worse is that my ubuntu media pc, does not automatically reconnect to the wireless network when it's been gone, and then comes up about a minute later. The network in question is setup as "connect automatically" in the network settings.
If I manually select my wireless network, using the wireless icon in the topright of my screen, everything works fine, until the next time that wireless goes down.
I'm looking for a way so I don't have to remember to do this manually all the time.
Best Answer
This seems to be posted all over the net with no good solutions. I guess the best fix/workaround is to make it check for internet connectivity and if it is not there then reconnect. I did this via a ping test to google.com and then I simply made it restart networking. Code is not tested (the restart part and the cron part, if statement tested), so I'll just wait for it to disconnect at some point. I have an Ubuntu Server 12.10, so no GUI, and is a pain to connect monitor and keyboard every time the wireless stuffs up.
Cron part done via webmin so Idk much about it. Script is as follows:
Make sure to run as root and make sure the script has execute (u+x) permissions.
links: