mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix huawei operator name
This commit is contained in:
parent
5352c9baa0
commit
840628a78e
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ 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')
|
||||
OPERATOR=$(grep FullName ${tmpfile} | cut -f2 -d'>' | cut -f1 -d'<')
|
||||
#$(cat ${tmpfile} | grep FullName | sed -e 's/<[^>]*>//g' | sed 's/[^\x00-\x7F]//g' | tr -d "\n")
|
||||
rm -f ${tmpfile}
|
||||
fi
|
||||
NUMBER=""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue