NuttX shell scripts: replace operator == with =

- NuttX supports both versions
- POSIX shell only supports '='
This commit is contained in:
Beat Küng
2018-09-27 23:39:20 +02:00
committed by Lorenz Meier
parent 4c90d2c025
commit 37338e442f
75 changed files with 146 additions and 147 deletions
+19 -19
View File
@@ -30,7 +30,7 @@ then
set MIXER_AUX none
fi
if [ $USE_IO == no ]
if [ $USE_IO = no ]
then
set MIXER_AUX none
fi
@@ -38,12 +38,12 @@ fi
#
# Set the default output mode if none was set.
#
if [ $OUTPUT_MODE == none ]
if [ $OUTPUT_MODE = none ]
then
if [ $USE_IO == yes ]
if [ $USE_IO = yes ]
then
# Enable IO output only if IO is present.
if [ $IO_PRESENT == yes ]
if [ $IO_PRESENT = yes ]
then
set OUTPUT_MODE io
fi
@@ -53,17 +53,17 @@ then
fi
#
# If OUTPUT_MODE == none then something is wrong with setup and we shouldn't try to enable output.
# If OUTPUT_MODE = none then something is wrong with setup and we shouldn't try to enable output.
#
if [ $OUTPUT_MODE != none ]
then
if [ $OUTPUT_MODE == mkblctrl ]
if [ $OUTPUT_MODE = mkblctrl ]
then
if [ $MKBLCTRL_MODE == x ]
if [ $MKBLCTRL_MODE = x ]
then
set MKBLCTRL_ARG "-mkmode x"
fi
if [ $MKBLCTRL_MODE == + ]
if [ $MKBLCTRL_MODE = + ]
then
set MKBLCTRL_ARG "-mkmode +"
fi
@@ -75,7 +75,7 @@ then
fi
fi
if [ $OUTPUT_MODE == hil -o $OUTPUT_MODE == sim ]
if [ $OUTPUT_MODE = hil -o $OUTPUT_MODE = sim ]
then
if ! pwm_out_sim start
then
@@ -84,7 +84,7 @@ then
fi
fi
if [ $OUTPUT_MODE == fmu ]
if [ $OUTPUT_MODE = fmu ]
then
if ! fmu mode_$FMU_MODE $FMU_ARGS
then
@@ -94,7 +94,7 @@ then
fi
fi
if [ $OUTPUT_MODE == uavcan_esc ]
if [ $OUTPUT_MODE = uavcan_esc ]
then
if param compare UAVCAN_ENABLE 0
then
@@ -102,7 +102,7 @@ then
fi
fi
if [ $OUTPUT_MODE == io -o $OUTPUT_MODE == uavcan_esc ]
if [ $OUTPUT_MODE = io -o $OUTPUT_MODE = uavcan_esc ]
then
sh /etc/init.d/rc.io
fi
@@ -110,7 +110,7 @@ then
#
# Start IO for RC input if needed.
#
if [ $IO_PRESENT == yes ]
if [ $IO_PRESENT = yes ]
then
if [ $OUTPUT_MODE != io ]
then
@@ -124,12 +124,12 @@ then
#
# Load main mixer.
#
if [ $MIXER_AUX == none -a $USE_IO == yes ]
if [ $MIXER_AUX = none -a $USE_IO = yes ]
then
set MIXER_AUX ${MIXER}
fi
if [ "$MIXER_FILE" == none ]
if [ "$MIXER_FILE" = none ]
then
if [ -f ${SDCARD_MIXERS_PATH}/${MIXER}.main.mix ]
then
@@ -146,19 +146,19 @@ then
fi
fi
if [ $OUTPUT_MODE == mkblctrl ]
if [ $OUTPUT_MODE = mkblctrl ]
then
set OUTPUT_DEV /dev/mkblctrl0
else
set OUTPUT_DEV /dev/pwm_output0
fi
if [ $OUTPUT_MODE == uavcan_esc ]
if [ $OUTPUT_MODE = uavcan_esc ]
then
set OUTPUT_DEV /dev/uavcan/esc
fi
if [ $OUTPUT_MODE == tap_esc ]
if [ $OUTPUT_MODE = tap_esc ]
then
set OUTPUT_DEV /dev/tap_esc
fi
@@ -311,7 +311,7 @@ then
fi
fi
if [ $OUTPUT_MODE == fmu -o $OUTPUT_MODE == io ]
if [ $OUTPUT_MODE = fmu -o $OUTPUT_MODE = io ]
then
if [ $PWM_OUT != none ]
then