From 63ee101c5161c157aeaa6cb97ff65f45cc368e47 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 18 Dec 2018 09:27:12 +0100 Subject: [PATCH] rcS: fix exit value Shellcheck complained about returning -1 because that's essentially 255. --- ROMFS/px4fmu_common/init.d-posix/rcS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d-posix/rcS b/ROMFS/px4fmu_common/init.d-posix/rcS index df2626c270..eb780666b6 100644 --- a/ROMFS/px4fmu_common/init.d-posix/rcS +++ b/ROMFS/px4fmu_common/init.d-posix/rcS @@ -45,7 +45,7 @@ else REQUESTED_AUTOSTART=$(ls "$SCRIPT_DIR" | sed -n 's/^\([0-9][0-9]*\)_'${PX4_SIM_MODEL}'$/\1/p') if [ -z "$REQUESTED_AUTOSTART" ]; then echo "Error: Unknown model '$PX4_SIM_MODEL'" - exit -1 + exit 1 fi fi @@ -174,7 +174,7 @@ do done if [ ! -e "$autostart_file" ]; then echo "Error: no autostart file found ($autostart_file)" - exit -1 + exit 1 fi sh "$autostart_file"