Bash script to monitor internet in order to respond to connectivity loss by performing a power cycle against an HS100, for example to reboot a cable modem.
You must first install the program linked above.
A systemd service is shown. You must configure the environment variable contained therein for this to work.