aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-10-11 16:30:55 +0200
committerJo-Philipp Wich <jo@mein.io>2018-12-18 17:22:06 +0100
commit5c10aaa65b1cb054d584b5abad73582975864e19 (patch)
tree2a03ee0c5909ea891293a4d84ae080e33808248e
parent251f4fd20e7c70565b9753743bd27bf96000061e (diff)
downloadupstream-5c10aaa65b1cb054d584b5abad73582975864e19.tar.gz
upstream-5c10aaa65b1cb054d584b5abad73582975864e19.tar.bz2
upstream-5c10aaa65b1cb054d584b5abad73582975864e19.zip
uqmi: fix variable initilization for timeout handling
Also add logging output for SIM initilization. Signed-off-by: Florian Eckert <fe@dev.tdt.de> (backported from 71865200c95d5ccebe01980c88ee44a15888bcaf)
-rwxr-xr-xpackage/network/utils/uqmi/files/lib/netifd/proto/qmi.sh2
1 files changed, 2 insertions, 0 deletions
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 a0dcb17cde..560c0b9459 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
sleep 1;