uqmi: fix variable initilization for timeout handling
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 11 Oct 2018 14:30:55 +0000 (16:30 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:22:06 +0000 (17:22 +0100)
Also add logging output for SIM initilization.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(backported from 71865200c95d5ccebe01980c88ee44a15888bcaf)

package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

index a0dcb17cde0ab4a9123bb9aa440cd13ab411348b..560c0b9459e71aac8710c76187e6b786e13ffc4c 100755 (executable)
@@ -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
                sleep 1;