ReferencePlatforms/mobile-imaging-android-tegra: Difference between revisions

Line 45: Line 45:
   
   
  APK_LIST="SUTAgentAndroidBob23.apk Watcher23.apk FenCP23.apk FfxCP23.apk"
  APK_LIST="SUTAgentAndroidBob23.apk Watcher23.apk FenCP23.apk FfxCP23.apk"
ACCEPTABLE_IPS="10.250.48.9 10.250.48.151 10.250.48.152 10.250.48.153 10.250.48.154"
  SERVER_IP=10.250.48.9
  SERVER_IP=10.250.48.9
  if [ $# -gt 0 ] ; then
  if [ $# -gt 0 ] ; then
     SERVER_IP=$1
     SERVER_IP=$1
else
    echo "Using default of bm-foopy."
fi
good_ip=0
for ip in $ACCEPTABLE_IPS; do
    if [ $ip == $SERVER_IP ] ; then
        good_ip=1
        break
    fi
done
if [ $good_ip -lt 1 ] ; then
    echo "$SERVER_IP is not a whitelisted IP! Exiting"
    exit -1
  fi
  fi
  echo "Setting server IP to $SERVER_IP."
  echo "Setting server IP to $SERVER_IP."
Line 69: Line 83:
  adb shell mkdir /mnt/sdcard/tests
  adb shell mkdir /mnt/sdcard/tests
  rm tmpfile
  rm tmpfile
echo "Associated with $SERVER_IP."


Create an SUTAgent.ini.tmpl
Create an SUTAgent.ini.tmpl
Confirmed users
4,971

edits