one issue with the pi is sometimes the IP address is lost with the wireless adapter, I need a simple script for every 10 minutes to check if I have a valid IP address.
If not, I would issue sudo /etc/init.d/networking restart to renew and the IP address would be reacquired.
The script would be running constantly at the background and check valid IP every 10 minutes.