Skip to content
Snippets Groups Projects
Commit ea7cebbf authored by Julian Oes's avatar Julian Oes Committed by Lorenz Meier
Browse files

scp_upload.sh: use ENV variable to set IP of RPi2

parent 4c0ed8bd
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,14 @@ if [[ "$#" < 2 ]]; then
exit
fi
if [ -z ${AUTOPILOT_HOST+x} ]; then
host=px4autopilot
echo "\$AUTOPILOT_HOST is not set (use default: $host)"
else
host=$AUTOPILOT_HOST
echo "\$AUTOPILOT_HOST is set to $host"
fi
echo "Uploading..."
# Get last argument
......@@ -19,6 +27,6 @@ do
fi
# echo "Pushing $arg to $last"
#adb push $arg $last
scp $arg pi@px4autopilot:$last
scp $arg pi@$host:$last
((i+=1))
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment