You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
234 B

#!nsh
set USB autoconnect
set NSH_ERROR_UART1 /dev/ttyACM0
set NSH_ERROR_UART2 /dev/ttyS0
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