diff options
Diffstat (limited to 'e3372-reboot.sh')
-rwxr-xr-x | e3372-reboot.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/e3372-reboot.sh b/e3372-reboot.sh index 0f648fd..f727177 100755 --- a/e3372-reboot.sh +++ b/e3372-reboot.sh @@ -7,6 +7,10 @@ curl -s -X GET "http://$MODEM_IP/api/webserver/SesTokInfo" > ses_tok.xml COOKIE=`grep "SessionID=" ses_tok.xml | cut -b 10-147` TOKEN=`grep "TokInfo" ses_tok.xml | cut -b 10-41` -curl -s -X POST "http://$MODEM_IP/api/device/control" -H "Cookie: $COOKIE" -H "__RequestVerificationToken: $TOKEN" -H "Content-Type: text/xml" -d "<?xml version="1.0" encoding="UTF-8"?><request><Control>1</Control></request>" +curl -s -X POST "http://$MODEM_IP/api/device/control" \ + -H "Cookie: $COOKIE" \ + -H "__RequestVerificationToken: $TOKEN" \ + -H "Content-Type: text/xml" \ + -d "<?xml version='1.0' encoding='UTF-8'?><request><Control>1</Control></request>" #test
\ No newline at end of file |