From 5c4b5c78592c028f190d80c3e35865c0e94c3e1e Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Fri, 6 Jul 2018 19:05:57 -0700 Subject: [PATCH] PX4 ROMFS: Start even if uSD is not installed --- mk/PX4/ROMFS/init.d/rcS | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/mk/PX4/ROMFS/init.d/rcS b/mk/PX4/ROMFS/init.d/rcS index 072c83561d..2c36911f29 100755 --- a/mk/PX4/ROMFS/init.d/rcS +++ b/mk/PX4/ROMFS/init.d/rcS @@ -75,24 +75,14 @@ else 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 # 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 echo Running rc.APM # if APM startup is successful then nsh will exit sh /etc/init.d/rc.APM else + echo "Opening USB nsh" nshterm /dev/ttyACM0 & fi