PX4: implement APM/nostart in rcS

this keeps the same shell on nostart, avoiding relying on nshterm
This commit is contained in:
Andrew Tridgell 2013-08-06 11:29:55 +10:00
parent 1c1e7ed414
commit 50cc6b5445
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ 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 ] if [ -f /etc/init.d/rc.APM -a $HAVE_MICROSD == 1 -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