mt5700 unicom isp code
This commit is contained in:
@@ -633,19 +633,27 @@ tdtech_sim_info()
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#ISP(互联网服务提供商)
|
ISP_Read(){
|
||||||
at_command="AT+COPS?"
|
operatorCode=$(sendat 1 'AT^EONS=2' | awk -F ',' '{print $2}' | sed '/^$/d')
|
||||||
isp=$(sh ${SCRIPT_DIR}/modem_at.sh ${at_port} ${at_command} | grep "+COPS" | awk -F'"' '{print $2}'| tr -d '\r\n' | xargs)
|
case "$operatorCode" in
|
||||||
if [[ "$isp" == "4E2D56FD8054901A" ]]; then
|
"46000" | "46002" | "46004" | "46007" | "46008" | "46020")
|
||||||
isp="CHN-UNICOM"
|
isp="中国移动"
|
||||||
fi
|
;;
|
||||||
if [ -z "$isp" ]; then
|
"46001" | "46006" | "46009")
|
||||||
at_command="AT^EONS=1"
|
isp="中国联通"
|
||||||
isp=$(sh ${SCRIPT_DIR}/modem_at.sh ${at_port} "${at_command}" | grep "^EONS" | awk -F'"' '{print $2}'| tr -d '\r\n' | xargs)
|
;;
|
||||||
if [[ "$isp" == "4E2D56FD8054901A" ]]; then
|
"46003" | "46005" | "46011")
|
||||||
isp="CHN-UNICOM"
|
isp="中国电信"
|
||||||
fi
|
;;
|
||||||
fi
|
"46015")
|
||||||
|
isp="中国广电"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
isp="未知运营商"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
ISP_Read
|
||||||
# if [ "$isp" = "CHN-CMCC" ] || [ "$isp" = "CMCC" ]|| [ "$isp" = "46000" ]; then
|
# if [ "$isp" = "CHN-CMCC" ] || [ "$isp" = "CMCC" ]|| [ "$isp" = "46000" ]; then
|
||||||
# isp="中国移动"
|
# isp="中国移动"
|
||||||
# elif [ "$isp" = "CHN-UNICOM" ] || [ "$isp" = "UNICOM" ] || [ "$isp" = "46001" ]; then
|
# elif [ "$isp" = "CHN-UNICOM" ] || [ "$isp" = "UNICOM" ] || [ "$isp" = "46001" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user