Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
rc.interface: expand mixer variables
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgubler committed Jan 27, 2015
1 parent b52ef8c commit 2114683
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ROMFS/px4fmu_common/init.d/rc.interface
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ then

if [ $MIXER_AUX == none ]
then
set MIXER_AUX $MIXER.aux
set MIXER_AUX ${MIXER}.aux
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

Expand Down Expand Up @@ -104,14 +104,14 @@ then

set MIXER_AUX_FILE none

if [ -f $SDCARD_MIXERS_PATH/$MIXER_AUX.mix ]
if [ -f ${SDCARD_MIXERS_PATH}/${MIXER_AUX}.mix ]
then
set MIXER_AUX_FILE $SDCARD_MIXERS_PATH/$MIXER_AUX.mix
set MIXER_AUX_FILE ${SDCARD_MIXERS_PATH}/${MIXER_AUX}.mix
else

if [ -f /etc/mixers/$MIXER_AUX.mix ]
if [ -f /etc/mixers/${MIXER_AUX}.mix ]
then
set MIXER_AUX_FILE /etc/mixers/$MIXER_AUX.mix
set MIXER_AUX_FILE /etc/mixers/${MIXER_AUX}.mix
fi
fi

Expand Down

0 comments on commit 2114683

Please sign in to comment.