Here is a quick Perl Script we have created to automatically reboot a Virgin Superhub 1 and Superhub 2 Router.
You require Mechanize to run this script successfully.
Steps
1: Make sure you have the Perl WWW::Mechanize Module installed.
For Debian distributions you can use the following command to install Mechanize