2
# Script to reboot phone and watch for bad stuff
4
# Script does the following:-
10
# * Device already running some build of Ubuntu Touch and is connected via USB
12
# (c) 2013 Canonical - Alan Pope alan.pope@canonical.com
17
echo ":: Run adb root"
19
if [ $? -ne "0" ]; then
20
echo ":: adb root failed"
30
function wait_for_device {
31
echo -n ":: Waiting for device to come back ."
33
while [ "$STATE" == "unknown" ];
44
echo ":: Reboot number $i "
49
echo ":: Looking for ueventd and whoopsie"
50
adb shell top -b -n 1 | grep 'ueventd\|whoopsie'
51
echo ":: Running vmstat for a bit"