uqmi: fix variable initilization for timeout handling
[openwrt/openwrt.git] / 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;