mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
PX4 ROMFS: Start even if uSD is not installed
This commit is contained in:
parent
ba1a611ea9
commit
5c4b5c7859
@ -75,24 +75,14 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $HAVE_MICROSD == 0 ]
|
|
||||||
then
|
|
||||||
if usb_connected
|
|
||||||
then
|
|
||||||
echo "Opening USB nsh"
|
|
||||||
else
|
|
||||||
echo "booting with no microSD"
|
|
||||||
set HAVE_MICROSD 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if this is an APM build then there will be a rc.APM script
|
# if this is an APM build then there will be a rc.APM script
|
||||||
# from an EXTERNAL_SCRIPTS build option
|
# from an EXTERNAL_SCRIPTS build option
|
||||||
if [ -f /etc/init.d/rc.APM -a $HAVE_MICROSD == 1 -a ! -f /fs/microsd/APM/nostart ]
|
if [ -f /etc/init.d/rc.APM -a ! -f /fs/microsd/APM/nostart ]
|
||||||
then
|
then
|
||||||
echo Running rc.APM
|
echo Running rc.APM
|
||||||
# if APM startup is successful then nsh will exit
|
# if APM startup is successful then nsh will exit
|
||||||
sh /etc/init.d/rc.APM
|
sh /etc/init.d/rc.APM
|
||||||
else
|
else
|
||||||
|
echo "Opening USB nsh"
|
||||||
nshterm /dev/ttyACM0 &
|
nshterm /dev/ttyACM0 &
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user