aboutsummaryrefslogtreecommitdiff
path: root/e3372-reboot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'e3372-reboot.sh')
-rwxr-xr-xe3372-reboot.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/e3372-reboot.sh b/e3372-reboot.sh
index 8f09b95..f4e8526 100755
--- a/e3372-reboot.sh
+++ b/e3372-reboot.sh
@@ -5,8 +5,5 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
get_token
-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>"
+post_xml "device/control" \
+ "<?xml version='1.0' encoding='UTF-8'?><request><Control>1</Control></request>" \ No newline at end of file