pingfail - wiedehopf/adsb-scripts GitHub Wiki
Reboot the computer when the internet can't be reached for at least 5 minutes.
Note: Without internet, the computer will keep rebooting every 10 minutes.
Installation:
sudo bash -c "$(wget -q -O - https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/pingfail-install.sh)"
Deactivate:
sudo systemctl disable --now pingfail