rc.fw_interface: use mixer file from sd if it exists

This commit is contained in:
Thomas Gubler 2014-01-12 18:55:41 +01:00
parent d079074e80
commit 449ed058c3
1 changed files with 11 additions and 1 deletions

View File

@ -13,7 +13,17 @@ param set MAV_TYPE 1
# Load mixer
#
echo "[init] Frame geometry: $FRAME_GEOMETRY"
set MIXER /etc/mixers/FMU_$FRAME_GEOMETRY.mix
set MIXERSD /fs/microsd/etc/mixers/FMU_$FRAME_GEOMETRY.mix
#Use the mixer file from the sd-card if it exists
if [ -f $MIXERSD ]
then
set MIXER MIXERSD
else
set MIXER /etc/mixers/FMU_$FRAME_GEOMETRY.mix
fi
if mixer load /dev/pwm_output $MIXER
then