Created
July 6, 2017 21:48
-
-
Save tenderlove/7e08f9dbcaca46b1ab7f2b8ed8f8bb88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Reboot netgear CM400 cablemodem via curl | |
curl -s -u admin:password 'http://192.168.100.1'$(curl -s -u admin:password http://192.168.100.1/RouterStatus.htm | grep id=[0-9] | cut -d'"' -f2) --data 'buttonSelect=2&wantype=dhcp&enable_apmode=0' > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment