ardrone-wpa2
ardrone-wpa2 copied to clipboard
FTP port issue
I'm working with Ubuntu 12.04 (on a VM) and the initial code didn't work. I added the port (5551 according to the parrot web site) on the FTP line in script/install and it works. Maybe this will help someone.
#!/usr/bin/env bash
set -ue
DRONEIP=${1:-"192.168.1.1"}
echo "Uploading binaries..."
curl -T bin/wpa_cli "ftp://$DRONEIP:5551"
curl -T bin/wpa_passphrase "ftp://$DRONEIP:5551"
curl -T bin/wpa_supplicant "ftp://$DRONEIP:5551"
sleep 1
{( sleep 1; echo "
mv /data/video/wpa_* /bin
chmod +x /bin/wpa_*
";) | telnet $DRONEIP > /dev/null; } | sleep 1 && echo "wpa_supplicant installed."
Thank you sir!! You saved me a lot of time.