How can I make wifi automatically go on when my G1 boots up I've got CM6 on it, and every once in a while the power goes out, the battery eventually dies, the power comes back and it boots up but no wifi. I have the thing in a faraway place and I get to it via ssh, so it's annoying to have to go manually turn on wifi when it reboots.

Is there a script somewhere I can run in userinit.sh that will turn on wifi?
There's an APP to workaround that issue, Wifi Fixer available for Free from Google Play Store:


  Wifi Fixer is a low-resource background Service that maintains your wifi connection automatically and works around several bugs in Android wifi.