envsetup: Wait for device in installboot/installrecovery
* Useful when you're racing against a bug that causes a kernel panic
shortly after USB turns on :(
Change-Id: I2a503e4b195e632ed5b67a77b942e80c47d0ff45
envsetup: Use wait-for-online so these cmds work in recovery
Change-Id: I7a85e7068f373b1d726aa6b27a51862fa9b7c6fd
diff --git a/envsetup.sh b/envsetup.sh
index f7810b7..c572c16 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -1627,6 +1627,7 @@
fi
fi
adb start-server
+ adb wait-for-online
adb root
sleep 1
adb wait-for-online shell mount /system 2>&1 > /dev/null
@@ -1671,6 +1672,7 @@
fi
fi
adb start-server
+ adb wait-for-online
adb root
sleep 1
adb wait-for-online shell mount /system 2>&1 >> /dev/null