forked from Archive/PX4-Autopilot
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:
parent
f76aa0e772
commit
7df1721d32
|
@ -72,28 +72,7 @@ then
|
||||||
umount /fs/microsd
|
umount /fs/microsd
|
||||||
|
|
||||||
else
|
else
|
||||||
# very basic I/O test
|
set SDCARD_AVAILABLE yes
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue