From 2c282d0e0e0331a8f6e5a96ffe766c1d5926d5a5 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 20 Aug 2018 15:59:35 -0700 Subject: [PATCH] rc.mavlink:Fix syntax errors --- ROMFS/px4fmu_common/init.d/rc.mavlink | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.mavlink b/ROMFS/px4fmu_common/init.d/rc.mavlink index 3544e53173..e409c66e3d 100644 --- a/ROMFS/px4fmu_common/init.d/rc.mavlink +++ b/ROMFS/px4fmu_common/init.d/rc.mavlink @@ -31,7 +31,7 @@ fi # End Setup for board specific configurations. # ############################################################################### -if [ $MAVLINK_F == default ] +if [ "x${MAVLINK_F}" == xdefault ] then # Normal mode, use baudrate 57600 (default) and data rate 1000 bytes/s set MAVLINK_F "-r 1200 -f" @@ -72,7 +72,7 @@ then fi fi -if [ "x$MAVLINK_F" != xnone ] +if [ "x${MAVLINK_F}" != xnone ] then mavlink start ${MAVLINK_F} fi