mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
403 B
Bash
17 lines
403 B
Bash
11 years ago
|
#!/bin/bash
|
||
|
|
||
|
bootanim=""
|
||
|
failcounter=0
|
||
|
until [[ "$bootanim" =~ "stopped" ]] || [[ "$bootanim" =~ "running" ]]; do
|
||
|
bootanim=`adb -e shell getprop init.svc.bootanim 2>&1`
|
||
|
echo "$bootanim"
|
||
|
if [[ "$bootanim" =~ "not found" ]]; then
|
||
|
let "failcounter += 1"
|
||
|
if [[ $failcounter -gt 3 ]]; then
|
||
|
echo "Failed to start emulator"
|
||
|
exit 1
|
||
|
fi
|
||
|
fi
|
||
|
sleep 1
|
||
|
done
|
||
|
echo "Done"
|