From d76151eef58949a6d07b38e37152f48552bbaab2 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 5 May 2020 10:27:41 +0200 Subject: [PATCH] Fix Operator from huawei --- luci-app-openmptcprouter/root/bin/omr-huawei | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci-app-openmptcprouter/root/bin/omr-huawei b/luci-app-openmptcprouter/root/bin/omr-huawei index 7bb08c162..b334230f5 100755 --- a/luci-app-openmptcprouter/root/bin/omr-huawei +++ b/luci-app-openmptcprouter/root/bin/omr-huawei @@ -39,7 +39,7 @@ OPERATOR="" if [ "$CONNECTSTATE" = "901" ]; then tmpfile=$(mktemp) curl -s -m 1 -X GET "http://$MODEM_IP/api/net/current-plmn" -H "Cookie: SessionID=$COOKIE" -H "__RequestVerificationToken: $TOKEN" -H "Content-Type: text/xml" > ${tmpfile} - OPERATOR=$(cat ${tmpfile} | grep FullName | sed -e 's/<[^>]*>//g' | sed 's/[^\x00-\x7F]//g') + OPERATOR=$(cat ${tmpfile} | grep FullName | sed -e 's/<[^>]*>//g') rm -f ${tmpfile} fi NUMBER=""