diff options
author | Florian Eckert <fe@dev.tdt.de> | 2018-10-11 16:30:55 +0200 |
---|---|---|
committer | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2018-10-12 09:36:05 +0200 |
commit | 71865200c95d5ccebe01980c88ee44a15888bcaf (patch) | |
tree | 2e996b7fdef76b86d5fb3916fcd309fda4d2ee1d /package/network/utils/uqmi | |
parent | e220ffb5338fc16a9f36662c1a7c32f6923e53ce (diff) | |
download | upstream-71865200c95d5ccebe01980c88ee44a15888bcaf.tar.gz upstream-71865200c95d5ccebe01980c88ee44a15888bcaf.tar.bz2 upstream-71865200c95d5ccebe01980c88ee44a15888bcaf.zip |
uqmi: fix variable initilization for timeout handling
Also add logging output for SIM initilization.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'package/network/utils/uqmi')
-rwxr-xr-x | package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 2 |
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 f7b5f27ef6..9b2f69f009 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 |