luci-app-qmodem: fix: dial delay null
This commit is contained in:
parent
5dc6b7cdad
commit
82f401bf05
@ -656,7 +656,7 @@ ecm_hang()
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fastat "${at_port}" "${at_command}"
|
fastat "${at_port}" "${at_command}"
|
||||||
sleep "$delay"
|
[ -n "$delay" ] && sleep "$delay"
|
||||||
}
|
}
|
||||||
|
|
||||||
hang()
|
hang()
|
||||||
@ -854,7 +854,7 @@ at_dial()
|
|||||||
m_debug "dialing vendor:$manufacturer;platform:$platform; $cgdcont_command ; $at_command"
|
m_debug "dialing vendor:$manufacturer;platform:$platform; $cgdcont_command ; $at_command"
|
||||||
at "${at_port}" "${cgdcont_command}"
|
at "${at_port}" "${cgdcont_command}"
|
||||||
fastat "$at_port" "$at_command"
|
fastat "$at_port" "$at_command"
|
||||||
sleep "$delay"
|
[ -n "$delay" ] && sleep "$delay"
|
||||||
if [ "$driver" = "mtk_pcie" ];then
|
if [ "$driver" = "mtk_pcie" ];then
|
||||||
fastat "$at_port" "AT+CGACT=0,3"
|
fastat "$at_port" "AT+CGACT=0,3"
|
||||||
mbim_port=$(echo "$at_port" | sed 's/at/mbim/g')
|
mbim_port=$(echo "$at_port" | sed 's/at/mbim/g')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user