Linino Locks up after ~12-24 hours Running php Script every minute

Re: Measuring if the Yun is internet connected

http://forum.arduino.cc/index.php?topic=209412.msg1541242#msg1541242

Modify the code and make it run once only and reboot linino when no internet. then put it at cronjob that runs every ~10 minutes.

B.T.W. Nagios support response which means once no network then auto reboot.