The modem needs a short moment before it can establish a PDP session
after it attached to the network.
Wait 5 seconds before attempting to create a PDP session. Otherwise,
this process is very racy and might take multiple attempts after a
connection is initially lost.
Signed-off-by: David Bauer <mail@david-bauer.net>
[ -n "$modes" ] && uqmi -s -d "$device" --set-network-modes "$modes" > /dev/null 2>&1
+ sleep 5
+
echo "Starting network $interface"
pdptype="$(echo "$pdptype" | awk '{print tolower($0)}')"