From 6fb1ba75835d5bcc46139dcf1cbf90a64e60d3d4 Mon Sep 17 00:00:00 2001 From: achim Date: Fri, 4 Jun 2021 17:25:22 +0200 Subject: [PATCH] Update rcS remove sd index file spoofing --- ROMFS/px4fmu_common/init.d/rcS | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 2aae31c773..09bf7f45cb 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -81,33 +81,6 @@ then hardfault_log reset fi fi - - # Prevent MacOS and Ubuntu from creating unnecessary temporary files on the microSD card - - # block MacOS Spotlight indexing (.Spotlight-V100 folder) - if [ ! -f "/fs/microsd/.metadata_never_index" ]; then - cat > /fs/microsd/.metadata_never_index - fi - - # block MacOS trashes - if [ ! -f "/fs/microsd/.Trashes" ]; then - cat > /fs/microsd/.Trashes - fi - - # block MacOS logging of filesystem events - if [ ! -d "/fs/microsd/.fseventsd" ]; then - mkdir /fs/microsd/.fseventsd - fi - - if [ ! -f "/fs/microsd/.fseventsd/no_log" ]; then - cat > /fs/microsd/.fseventsd/no_log - fi - - # block Ubuntu trash - if [ ! -f "/fs/microsd/.Trash-1000" ]; then - cat > /fs/microsd/.Trash-1000 - fi - else # tune SD_INIT set STARTUP_TUNE 14 # tune 14 = SD_INIT