aboutsummaryrefslogtreecommitdiff
path: root/e3372-dataswitch-off.sh
diff options
context:
space:
mode:
Diffstat (limited to 'e3372-dataswitch-off.sh')
-rwxr-xr-xe3372-dataswitch-off.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/e3372-dataswitch-off.sh b/e3372-dataswitch-off.sh
index 83ae7e0..446708a 100755
--- a/e3372-dataswitch-off.sh
+++ b/e3372-dataswitch-off.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>0</dataswitch></request>" >modem_status.xml
-
-cat modem_status.xml
+post_xml "dialup/mobile-dataswitch" \
+ "<request><dataswitch>0</dataswitch></request>" \ No newline at end of file