Skip to content

Instantly share code, notes, and snippets.

@DASPRiD
Created May 30, 2021 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DASPRiD/253f23b89c9fed6cff7ed806e0bc18d6 to your computer and use it in GitHub Desktop.
Save DASPRiD/253f23b89c9fed6cff7ed806e0bc18d6 to your computer and use it in GitHub Desktop.
restart-fritzbox.sh
#!/bin/bash
ipAddress="192.168.0.1"
username="USERNAME"
password="PASSWORD"
curl -k -m 5 --anyauth -u "$username:$password" http://$ipAddress:49000/upnp/control/deviceconfig -H 'Content-Type: text/xml; charset="utf-8"' -H "SoapAction:urn:dslforum-org:service:DeviceConfig:1#Reboot" -d "<?xml version='1.0' encoding='utf-8'?><s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><u:Reboot xmlns:u='urn:dslforum-org:service:DeviceConfig:1'/></s:Body></s:Envelope>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment