Created
May 30, 2021 18:42
-
-
Save DASPRiD/253f23b89c9fed6cff7ed806e0bc18d6 to your computer and use it in GitHub Desktop.
restart-fritzbox.sh
This file contains hidden or 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/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