PX4: don't use tone_alarm in init
and removed use of binfs
This commit is contained in:
parent
b11bd33b0e
commit
d3e6cc7141
@ -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"
|
||||
|
@ -1,7 +1,5 @@
|
||||
echo "Error in startup"
|
||||
|
||||
tone_alarm MNCC
|
||||
|
||||
if [ $HAVE_RGBLED == 1 ]
|
||||
then
|
||||
rgbled rgb 16 0 0
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user