Permalink
Browse files

Added uavpal_sc2adb.sh script to get a shell on SC2 from Disco/Bebop2…

… (via adb)
  • Loading branch information...
SoftIce
SoftIce committed Oct 14, 2018
1 parent 8f8188d commit 94e5fee896b17e1f414ed89ab9c5905259ae6942
Showing with 9 additions and 0 deletions.
  1. +9 −0 disco/uavpal/bin/uavpal_sc2adb.sh
@@ -0,0 +1,9 @@
#!/bin/sh
ip_sc2=`netstat -nu |grep 9988 | head -1 | awk '{ print $5 }' | cut -d ':' -f 1`
until /data/ftp/uavpal/bin/adb connect ${ip_sc2}:9050 2>/dev/null;
do
echo "Trying to connect to Skycontroller 2 via Wi-Fi"
done
echo "Welcome to Skycontroller 2!"
/data/ftp/uavpal/bin/adb shell 2>/dev/null;
echo "Exiting Skycontroller 2 shell!"

0 comments on commit 94e5fee

Please sign in to comment.