Browse Source

PX4: removed attempt at formatting microSD

this never worked, and its a bad idea anyway
master
Andrew Tridgell 8 years ago committed by Peter Barker
parent
commit
e8117f5f46
  1. 24
      mk/PX4/ROMFS/init.d/rcS

24
mk/PX4/ROMFS/init.d/rcS

@ -34,29 +34,7 @@ then @@ -34,29 +34,7 @@ then
fi
else
set HAVE_MICROSD 0
echo "Trying format of microSD"
tone_alarm MBAGP
if mkfatfs /dev/mmcsd0
then
echo "microSD card formatted"
if mount -t vfat /dev/mmcsd0 /fs/microsd
then
echo "format succeeded"
set HAVE_MICROSD 1
if [ -f /etc/tones/startup ]
then
tone_alarm /etc/tones/startup
else
tone_alarm 1
fi
else
echo "mount failed"
tone_alarm MNBG
fi
else
echo "format failed"
tone_alarm MNBGG
fi
tone_alarm MNBGG
fi
# Look for an additional init script that allows changing the default

Loading…
Cancel
Save