uqmi: fix variable initilization for timeout handling
Also add logging output for SIM initilization. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
e220ffb533
commit
71865200c9
@ -68,6 +68,8 @@ proto_qmi_setup() {
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "Waiting for SIM initialization"
|
||||||
|
local uninitialized_timeout=0
|
||||||
while uqmi -s -d "$device" --get-pin-status | grep '"UIM uninitialized"' > /dev/null; do
|
while uqmi -s -d "$device" --get-pin-status | grep '"UIM uninitialized"' > /dev/null; do
|
||||||
[ -e "$device" ] || return 1
|
[ -e "$device" ] || return 1
|
||||||
if [ "$uninitialized_timeout" -lt "$timeout" ]; then
|
if [ "$uninitialized_timeout" -lt "$timeout" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user