PX4: don't use tone_alarm in init

and removed use of binfs
This commit is contained in:
Andrew Tridgell 2018-07-30 13:11:57 +10:00
parent b11bd33b0e
commit d3e6cc7141
3 changed files with 0 additions and 26 deletions

View File

@ -18,20 +18,6 @@ then
sh /etc/init.d/rc.error
fi
# mount binfs so we can find the built-in apps
if [ -f /bin/reboot ]
then
echo "binfs already mounted"
else
echo "Mounting binfs"
if mount -t binfs /dev/null /bin
then
echo "binfs mounted OK"
else
sh /etc/init.d/rc.error
fi
fi
set sketch NONE
if rm /fs/microsd/APM/boot.log
then
@ -39,12 +25,6 @@ then
fi
set logfile /fs/microsd/APM/BOOT.LOG
if [ ! -f /bin/ArduPilot ]
then
echo "/bin/ardupilot not found"
sh /etc/init.d/rc.error
fi
if mkdir /fs/microsd/APM > /dev/null
then
echo "Created APM directory"

View File

@ -1,7 +1,5 @@
echo "Error in startup"
tone_alarm MNCC
if [ $HAVE_RGBLED == 1 ]
then
rgbled rgb 16 0 0

View File

@ -24,10 +24,6 @@ echo "[init] looking for microSD..."
if mount -t vfat /dev/mmcsd0 /fs/microsd
then
echo "[init] card mounted at /fs/microsd"
set HAVE_MICROSD 1
else
set HAVE_MICROSD 0
tone_alarm MNBGG
fi
# Look for an additional init script that allows changing the default