Skip to content

Instantly share code, notes, and snippets.

@tenderlove
Created July 6, 2017 21:48
Show Gist options
  • Save tenderlove/7e08f9dbcaca46b1ab7f2b8ed8f8bb88 to your computer and use it in GitHub Desktop.
Save tenderlove/7e08f9dbcaca46b1ab7f2b8ed8f8bb88 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment