Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

netgear_reboot

Reboot script for Netgear WNDR4500

I have a router that started failing after I filled up all 4 Ethernet ports, even after updating firmware, so this little script runs on a laptop connected via WiFi, and reboots the router every hour.

To set it up to run on boot, have a crontab something like this:

START CRONTAB HOME=/home/morphex

@reboot /home/morphex/netgear_reboot/br.sh ROUTER_ADMIN_PASSWORD END CRONTAB

Where HOME is the home directory of the user, where netgear_reboot is the directory for this script, and bin is the directory which contains geckodriver, which can be downloaded from here:

https://github.com/mozilla/geckodriver/releases

Also, on my laptop, the network routing gets screwed up, so I have to allow my user morphex to run sudo on the command to reset the routing table:

morphex ALL=(ALL) NOPASSWD: /sbin/ip route del 0/0

the above line is added to /etc/sudoers

Tested on Ubuntu with python 2 and 3, seems to work just fine. Requires the python package python(3)-selenium.

Blog posts related to this software is here:

http://blogologue.com/search?category=1470141490X3

About

Reboot script for Netgear WNDR4500

Resources

Releases

No releases published

Packages

No packages published