aboutsummaryrefslogtreecommitdiff
path: root/e3372-reboot.sh
blob: 8f09b95e9f664bddc868c6118b4af3686f69e1ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
. "$DIR/include.sh"

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>"