fix foxconn pcie
This commit is contained in:
parent
311bf7c38b
commit
0d0ff1d4b8
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2025 x-shark
|
||||||
|
|
||||||
source /usr/share/qmodem/generic.sh
|
source /usr/share/qmodem/generic.sh
|
||||||
debug_subject="quectel_ctrl"
|
debug_subject="quectel_ctrl"
|
||||||
@ -37,8 +38,8 @@ function get_mode(){
|
|||||||
cfg=$(at $at_port "AT^PCIEMODE?")
|
cfg=$(at $at_port "AT^PCIEMODE?")
|
||||||
config_type=`echo -e "$cfg" | grep -o '[0-9]'`
|
config_type=`echo -e "$cfg" | grep -o '[0-9]'`
|
||||||
if [ "$config_type" = "1" ]; then
|
if [ "$config_type" = "1" ]; then
|
||||||
mode="0"
|
mode_num="0"
|
||||||
json_add_int disable_mode_btn 0
|
json_add_int disable_mode_btn 1
|
||||||
|
|
||||||
else
|
else
|
||||||
ucfg=$(at $at_port "AT+USBSWITCH?")
|
ucfg=$(at $at_port "AT+USBSWITCH?")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user