Skip to content

Instantly share code, notes, and snippets.

@ybur-yug
Forked from tenderlove/reboot-cablemodem
Created July 18, 2017 23:07
Show Gist options
  • Save ybur-yug/74da634aeb3b9aba0ff66fde0da93254 to your computer and use it in GitHub Desktop.
Save ybur-yug/74da634aeb3b9aba0ff66fde0da93254 to your computer and use it in GitHub Desktop.
#!/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
@smclellan
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment