Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
ea7cebbf
Commit
ea7cebbf
authored
8 years ago
by
Julian Oes
Committed by
Lorenz Meier
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
scp_upload.sh: use ENV variable to set IP of RPi2
parent
4c0ed8bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tools/scp_upload.sh
+9
-1
9 additions, 1 deletion
Tools/scp_upload.sh
with
9 additions
and
1 deletion
Tools/scp_upload.sh
+
9
−
1
View file @
ea7cebbf
...
...
@@ -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@
px4autopilo
t:
$last
scp
$arg
pi@
$hos
t
:
$last
((
i+
=
1
))
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment