uqmi: fix variable initilization for timeout handling
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 11 Oct 2018 14:30:55 +0000 (16:30 +0200)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Fri, 12 Oct 2018 07:36:05 +0000 (09:36 +0200)
Also add logging output for SIM initilization.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

index f7b5f27ef67891654685898ed4d09b39e9e7cd5c..9b2f69f009f467e204dcab6f6c8557398057179f 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
                if [ "$uninitialized_timeout" -lt "$timeout" ]; then