From bacafb77cf9e79a0e090474ac28addd1379913d8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 8 Feb 2018 17:48:35 +1100 Subject: [PATCH] mk: added rcS_no_microSD for boards without a microSD or USB card --- mk/PX4/ROMFS/init.d/rcS_no_microSD | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 mk/PX4/ROMFS/init.d/rcS_no_microSD diff --git a/mk/PX4/ROMFS/init.d/rcS_no_microSD b/mk/PX4/ROMFS/init.d/rcS_no_microSD new file mode 100644 index 0000000000..fd083d5c16 --- /dev/null +++ b/mk/PX4/ROMFS/init.d/rcS_no_microSD @@ -0,0 +1,16 @@ +#!nsh +set USB autoconnect +set NSH_ERROR_UART1 /dev/ttyACM0 +set NSH_ERROR_UART2 /dev/ttyS0 + +tone_alarm /etc/tones/startup + +if sercon +then + echo "[init] USB interface connected" +else + echo "[init] No USB connected" +fi + +echo Running rc.APM +sh /etc/init.d/rc.APM