summaryrefslogtreecommitdiff
path: root/e3372-dataswitch-on.sh
diff options
context:
space:
mode:
Diffstat (limited to 'e3372-dataswitch-on.sh')
-rwxr-xr-xe3372-dataswitch-on.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/e3372-dataswitch-on.sh b/e3372-dataswitch-on.sh
index f270561..9662a7d 100755
--- a/e3372-dataswitch-on.sh
+++ b/e3372-dataswitch-on.sh
@@ -4,11 +4,5 @@ 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
+post_xml "dialup/mobile-dataswitch" \
+ "<request><dataswitch>1</dataswitch></request>" \ No newline at end of file