From f417ae73ef90d1ae45308928936581a66ca5bca1 Mon Sep 17 00:00:00 2001 From: RomanBapst Date: Wed, 2 Oct 2024 08:39:28 +0300 Subject: [PATCH] added full support for external autostart scripts Signed-off-by: RomanBapst --- ROMFS/px4fmu_common/init.d/rcS | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 28804361d1..2c14c39007 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -105,6 +105,13 @@ then fi fi + if [ -e /fs/microsd/new ] + then + echo "Updating external autostart files" + rm -r $SDCARD_EXT_PATH + mv /fs/microsd/new $SDCARD_EXT_PATH + fi + # Check for an update of the ext_autostart folder, and replace the old one with it if [ -e /fs/microsd/ext_autostart_new ] then