summaryrefslogtreecommitdiff
path: root/e3372-dataswitch-on.sh
diff options
context:
space:
mode:
Diffstat (limited to 'e3372-dataswitch-on.sh')
-rwxr-xr-x[-rw-r--r--]e3372-dataswitch-on.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/e3372-dataswitch-on.sh b/e3372-dataswitch-on.sh
index 6b9e699..8fc0de7 100644..100755
--- a/e3372-dataswitch-on.sh
+++ b/e3372-dataswitch-on.sh
@@ -1,6 +1,8 @@
-#!/bin/sh
+#!/bin/bash
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
+. "$DIR/config.sh"
-MODEM_IP="192.168.9.1"
curl -s -X GET "http://$MODEM_IP/api/webserver/SesTokInfo" > ses_tok.xml
COOKIE=`grep "SessionID=" ses_tok.xml | cut -b 10-147`
TOKEN=`grep "TokInfo" ses_tok.xml | cut -b 10-41`