Use RAM storage in dataman

This commit is contained in:
David Sidrane
2016-09-21 13:21:51 -10:00
committed by Lorenz Meier
parent dce2262243
commit 1152b68a28
+4 -1
View File
@@ -20,6 +20,7 @@ sercon
set TUNE_ERR ML<<CP4CP4CP4CP4CP4
set LOG_FILE /fs/microsd/bootlog.txt
set DATAMAN_OPT -r
#
# Try to mount the microSD card.
@@ -27,12 +28,14 @@ set LOG_FILE /fs/microsd/bootlog.txt
if mount -t vfat /dev/mmcsd0 /fs/microsd
then
echo "microSD present"
unset DATAMAN_OPT
else
if mkfatfs /dev/mmcsd0
then
if mount -t vfat /dev/mmcsd0 /fs/microsd
then
echo "microSD card formatted"
unset DATAMAN_OPT
else
echo "ERROR [init] Format failed"
tone_alarm MNBG
@@ -141,7 +144,7 @@ gps start -d /dev/ttyS0
# waypoint storage
# REBOOTWORK this needs to start in parallel
if dataman start
if dataman start $DATAMAN_OPT
then
fi