mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 04:06:33 +08:00
Update rcS
remove sd index file spoofing
This commit is contained in:
@@ -81,33 +81,6 @@ then
|
|||||||
hardfault_log reset
|
hardfault_log reset
|
||||||
fi
|
fi
|
||||||
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
|
else
|
||||||
# tune SD_INIT
|
# tune SD_INIT
|
||||||
set STARTUP_TUNE 14 # tune 14 = SD_INIT
|
set STARTUP_TUNE 14 # tune 14 = SD_INIT
|
||||||
|
|||||||
Reference in New Issue
Block a user