ROMFS: rcS disable simplistic SD I/O test

- this was added when trying to identify SD card issues at boot and
trigger a format, but didn't provide any value
This commit is contained in:
Daniel Agar 2022-01-01 17:25:05 -05:00
parent f76aa0e772
commit 7df1721d32
1 changed files with 1 additions and 22 deletions

View File

@ -72,28 +72,7 @@ then
umount /fs/microsd
else
# very basic I/O test
set PX4_INIT_TEST_FILE "/fs/microsd/.px4_init_test_file"
date >> $PX4_INIT_TEST_FILE
if [ $? -eq 0 -a -f $PX4_INIT_TEST_FILE ]
then
cat $PX4_INIT_TEST_FILE
rm $PX4_INIT_TEST_FILE
if [ $? -eq 0 -a ! -f $PX4_INIT_TEST_FILE ]
then
set SDCARD_AVAILABLE yes
fi
fi
unset PX4_INIT_TEST_FILE
if [ $SDCARD_AVAILABLE = no ]
then
echo "ERROR [init] card I/O failure, formatting"
set SDCARD_FORMAT yes
umount /fs/microsd
fi
set SDCARD_AVAILABLE yes
fi
fi