For a number of reasons I have my DD-WRT-based router shut down WiFi at nights, that though causes some inconvenience to my Raspberry Pi. I have it connected with a RTL8188CUS based WiFi dongle, the cheapest found on eBay. The problem is that it won’t re-connect by itself when WiFi drops and I find my Raspberry Pi without Internet connection at mornings. I have to physically unplug and then plug the dongle back to get it working. Luckily I am not the only one in this situation and found that a guy named Kevin Reed already created a script that would take care of the this. It didn’t work straight out for me, I had to do some modifications, my modified version is available on Github. So I created a cron job to run the script every minute and all works nicely now. Instructions on how to set it up are in the script itself.
Page views: 18590