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:
parent
d3a77da005
commit
d76151eef5
1 changed files with 1 additions and 1 deletions
|
@ -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=""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue