aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-03-20 18:03:51 +0000
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-03-20 18:03:51 +0000
commitccd19321c1a9f6a51d4c756a42d07dfced3cb740 (patch)
tree13eeafae916811bc13ddf7b6e4b16be67c753ac4
parent3c62cf0e3c596726a453ab47ec5eb62da449a60d (diff)
added wait-for-device to set proper MP/IKS mode in switcher
-rwxr-xr-xprepare-device.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/prepare-device.sh b/prepare-device.sh
index 788461e..6f0b4fc 100755
--- a/prepare-device.sh
+++ b/prepare-device.sh
@@ -10,8 +10,11 @@ then
echo "Disable IKS for $IPADDR"
adb connect $IPADDR:5555
adb devices
+ echo "Waiting for device"
+ adb wait-for-device
echo "adb -s $IPADDR:5555 shell \"echo 0 > /sys/kernel/bL_switcher/active\""
adb -s $IPADDR:5555 shell "echo 0 > /sys/kernel/bL_switcher/active"
+ adb -s $IPADDR:5555 shell "cat /sys/kernel/bL_switcher/active"
fi
if [ $1 == 'iks' ]
@@ -21,8 +24,11 @@ then
echo "Enable IKS for $IPADDR"
adb connect $IPADDR:5555
adb devices
+ echo "Waiting for device"
+ adb wait-for-device
echo "adb -s $IPADDR:5555 shell \"echo 1 > /sys/kernel/bL_switcher/active\""
adb -s $IPADDR:5555 shell "echo 1 > /sys/kernel/bL_switcher/active"
+ adb -s $IPADDR:5555 shell "cat /sys/kernel/bL_switcher/active"
fi
exit 0