From 71865200c95d5ccebe01980c88ee44a15888bcaf Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 11 Oct 2018 16:30:55 +0200 Subject: [PATCH] uqmi: fix variable initilization for timeout handling Also add logging output for SIM initilization. Signed-off-by: Florian Eckert --- package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh index f7b5f27ef67..9b2f69f009f 100755 --- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh +++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh @@ -68,6 +68,8 @@ proto_qmi_setup() { 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 [ -e "$device" ] || return 1 if [ "$uninitialized_timeout" -lt "$timeout" ]; then -- 2.30.2