1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix Operator from huawei

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-05-05 10:27:41 +02:00
parent d3a77da005
commit d76151eef5

View file

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