Software option:
A script to log into the router's setup page and reboot from there.

Hardware option:
A timer that powers it off for a few minutes and then back on.

Possibly useful links:
...