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

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

get_token

curl -s -X POST "http://$MODEM_IP/api/dialup/mobile-dataswitch" \
    -H "Cookie: $COOKIE" \
    -H "__RequestVerificationToken: $TOKEN" \
    -H "Content-Type: text/xml" \
    -d "<request><dataswitch>1</dataswitch></request>" >modem_status.xml

cat modem_status.xml