The Unofficial Apple Weblog posts a story about the iPhone running /bin/sh when it crashes. Of course, there isn’t a keyboard so you end up doing a restore.
Since the iPhone didn’t ship with /bin/sh anyhow, couldn’t you put a script in its place to reboot your phone by calling init or shutdown? Or put something in your .bashrc to sleep for five minutes and then reboot?
Just a thought.