-
-
Save ybur-yug/74da634aeb3b9aba0ff66fde0da93254 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
Have you made any modifications to this to make it work? I have not had any success with this (modified to use my login credentials, of course).