From bdeca34830f48e75c048b763660d9691eef9cbbb Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 8 Aug 2015 00:10:01 +0200 Subject: [PATCH] Mark boot complete in all conditions, not just if autostart has been configured already. --- ROMFS/px4fmu_common/init.d/rcS | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index ad9a311ab4..dfa270b048 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -702,19 +702,19 @@ then tone_alarm error fi - # Boot is complete, inform MAVLink app(s) that the system is now fully up and running - mavlink boot_complete - - if [ $EXIT_ON_END == yes ] - then - echo "Exit from nsh" - exit - fi - unset EXIT_ON_END - # End of autostart fi +# Boot is complete, inform MAVLink app(s) that the system is now fully up and running +mavlink boot_complete + +if [ $EXIT_ON_END == yes ] +then + echo "Exit from nsh" + exit +fi +unset EXIT_ON_END + # There is no further processing, so we can free some RAM # XXX potentially unset all script variables. unset TUNE_ERR