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
dd2fe5d4
Commit
dd2fe5d4
authored
8 years ago
by
David Sidrane
Committed by
Lorenz Meier
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Document and fix '${varname}' usage
parent
dec46927
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
ROMFS/px4fmu_common/init.d/rc.interface
+15
-9
15 additions, 9 deletions
ROMFS/px4fmu_common/init.d/rc.interface
with
15 additions
and
9 deletions
ROMFS/px4fmu_common/init.d/rc.interface
+
15
−
9
View file @
dd2fe5d4
...
...
@@ -2,6 +2,12 @@
#
# Script to configure control interface
#
#
# NOTE: environment variable references:
# If the dollar sign ('$') is followed by a left bracket ('{') then the
# variable name is terminated with the right bracket character ('}').
# Otherwise, the variable name goes to the end of the argument.
#
set SDCARD_MIXERS_PATH /fs/microsd/etc/mixers
...
...
@@ -17,17 +23,17 @@ then
fi
# Use the mixer file from the SD-card if it exists
if [ -f $SDCARD_MIXERS_PATH/$MIXER.main.mix ]
if [ -f $
{
SDCARD_MIXERS_PATH
}
/$
{
MIXER
}
.main.mix ]
then
set MIXER_FILE $SDCARD_MIXERS_PATH/$MIXER.main.mix
set MIXER_FILE $
{
SDCARD_MIXERS_PATH
}
/$
{
MIXER
}
.main.mix
# Try out the old convention, for backward compatibility
else
if [ -f $SDCARD_MIXERS_PATH/$MIXER.mix ]
if [ -f $
{
SDCARD_MIXERS_PATH
}
/$
{
MIXER
}
.mix ]
then
set MIXER_FILE $SDCARD_MIXERS_PATH/$MIXER.mix
set MIXER_FILE $
{
SDCARD_MIXERS_PATH
}
/$
{
MIXER
}
.mix
else
set MIXER_FILE /etc/mixers/$MIXER.main.mix
set MIXER_FILE /etc/mixers/$
{
MIXER
}
.main.mix
fi
fi
...
...
@@ -133,14 +139,14 @@ then
set MIXER_AUX_FILE none
set OUTPUT_AUX_DEV /dev/pwm_output1
if [ -f $SDCARD_MIXERS_PATH/$MIXER_AUX.aux.mix ]
if [ -f $
{
SDCARD_MIXERS_PATH
}
/$
{
MIXER_AUX
}
.aux.mix ]
then
set MIXER_AUX_FILE $SDCARD_MIXERS_PATH/$MIXER_AUX.aux.mix
set MIXER_AUX_FILE $
{
SDCARD_MIXERS_PATH
}
/$
{
MIXER_AUX
}
.aux.mix
else
if [ -f /etc/mixers/$MIXER_AUX.aux.mix ]
if [ -f /etc/mixers/$
{
MIXER_AUX
}
.aux.mix ]
then
set MIXER_AUX_FILE /etc/mixers/$MIXER_AUX.aux.mix
set MIXER_AUX_FILE /etc/mixers/$
{
MIXER_AUX
}
.aux.mix
fi
fi
...
...
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