mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
mk: added rcS_no_microSD
for boards without a microSD or USB card
This commit is contained in:
parent
eb0389caf2
commit
bacafb77cf
16
mk/PX4/ROMFS/init.d/rcS_no_microSD
Normal file
16
mk/PX4/ROMFS/init.d/rcS_no_microSD
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user