At the moment of time I had a raspberry Pi arrived from China and really wanted to put my hands on it.
Initially I installed the Raspbian linux on it, but ironically enough I struggled with Chinese memory card a lot and all resolved when I finally bought the well-known in the store.
So what I wanted to do: my adsl modem which I had got for free had some freezes which fixed after the reboot. With time it evolved to each day couple reboots routine.
Solution in mind: to ping some known website one time per n minutes, and, if it is not – make a reboot.
That fact that my PRi stands next to the modem was also in favor of the solution.
Continue reading