处理一些特殊的FM350信息
This commit is contained in:
parent
3adc15f5f2
commit
2c6450b1af
@ -127,6 +127,9 @@ rndis_dial()
|
||||
# $2:连接定义
|
||||
modemmanager_dial()
|
||||
{
|
||||
local interface_name="$1"
|
||||
local define_connect="$2"
|
||||
|
||||
#激活
|
||||
local at_command="AT+CGACT=1,${define_connect}"
|
||||
#打印日志
|
||||
@ -134,7 +137,7 @@ modemmanager_dial()
|
||||
at "${at_port}" "${at_command}"
|
||||
|
||||
#启动网络接口
|
||||
ifup "$1";
|
||||
ifup "${interface_name}";
|
||||
}
|
||||
|
||||
#检查模组网络连接
|
||||
|
@ -348,12 +348,13 @@ retry_set_modem_config()
|
||||
modem_name=$(at ${at_port} ${at_command} | sed -n '2p' | sed 's/\r//g' | tr 'A-Z' 'a-z')
|
||||
}
|
||||
|
||||
[ -n "$modem_name" ] && {
|
||||
|
||||
#特殊处理FM350-GL-00 5G Module
|
||||
[[ "$modem_name" = *"fm350-gl"* ]] && {
|
||||
modem_name="fm350-gl"
|
||||
}
|
||||
|
||||
[ -n "$modem_name" ] && {
|
||||
#获取模组信息
|
||||
local data_interface=$(uci -q get modem.modem${modem_no}.data_interface)
|
||||
local modem_info=$(echo ${modem_support} | jq '.modem_support.'$data_interface'."'$modem_name'"')
|
||||
|
Loading…
x
Reference in New Issue
Block a user