diff options
Diffstat (limited to 'prepare-device.sh')
-rwxr-xr-x | prepare-device.sh | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/prepare-device.sh b/prepare-device.sh index 8d2759b..4eeaaad 100755 --- a/prepare-device.sh +++ b/prepare-device.sh @@ -29,7 +29,8 @@ then # enable IKS IPADDR=`cat IPADDR` echo "Enable IKS for $IPADDR" - adb root | true + adb connect $IPADDR:5555 + adb root || true adb connect $IPADDR:5555 adb devices echo "Waiting for device" @@ -44,7 +45,8 @@ then # disable IKS IPADDR=`cat IPADDR` echo "Disable IKS for $IPADDR" - adb root | true + adb connect $IPADDR:5555 + adb root || true adb connect $IPADDR:5555 adb devices echo "Waiting for device" @@ -62,7 +64,8 @@ then # disable IKS IPADDR=`cat IPADDR` echo "Disable IKS for $IPADDR" - adb root | true + adb connect $IPADDR:5555 + adb root || true adb connect $IPADDR:5555 adb devices echo "Waiting for device" @@ -79,11 +82,12 @@ fi if [ $1 == 'a53_only' ] then IPADDR=`cat IPADDR` - adb root | true + adb connect $IPADDR:5555 + adb root || true adb connect $IPADDR:5555 adb devices echo "Waiting for device" - adb remount | true + adb remount || true adb wait-for-device adb devices echo "Disable A57 cluster" @@ -94,11 +98,12 @@ fi if [ $1 == 'a57_only' ] then IPADDR=`cat IPADDR` - adb root | true + adb connect $IPADDR:5555 + adb root || true adb connect $IPADDR:5555 adb devices echo "Waiting for device" - adb remount | true + adb remount || true adb wait-for-device adb devices echo "Disable A53 cluster" @@ -111,11 +116,12 @@ fi if [ $1 == 'hmp' ] then IPADDR=`cat IPADDR` - adb root | true + adb connect $IPADDR:5555 + adb root || true adb connect $IPADDR:5555 adb devices echo "Waiting for device" - adb remount | true + adb remount || true adb wait-for-device adb devices fi @@ -123,11 +129,12 @@ fi if [ $1 == 'eas' ] then IPADDR=`cat IPADDR` - adb root | true + adb connect $IPADDR:5555 + adb root || true adb connect $IPADDR:5555 adb devices echo "Waiting for device" - adb remount | true + adb remount || true adb wait-for-device adb devices fi |