From 9d1232228b9b63f6b20389ac0a481d0eb25713b8 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 22 Mar 2021 21:12:24 +0300 Subject: move MODEM_IP variable to a separate file --- e3372-clear-traffic-stats.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 e3372-clear-traffic-stats.sh (limited to 'e3372-clear-traffic-stats.sh') diff --git a/e3372-clear-traffic-stats.sh b/e3372-clear-traffic-stats.sh old mode 100644 new mode 100755 index c8402ca..7874f86 --- a/e3372-clear-traffic-stats.sh +++ b/e3372-clear-traffic-stats.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` -- cgit v1.2.3