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=""