mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-19 11:16:32 +00:00
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 71865200c9
)
This commit is contained in:
parent
251f4fd20e
commit
5c10aaa65b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user