Browse Source

sercon is only used by APM now

sbg
Lorenz Meier 12 years ago
parent
commit
39d8847189
  1. 21
      ROMFS/px4fmu_common/init.d/rcS

21
ROMFS/px4fmu_common/init.d/rcS

@ -42,13 +42,18 @@ then
sh /fs/microsd/etc/rc.txt sh /fs/microsd/etc/rc.txt
fi fi
# # if this is an APM build then there will be a rc.APM script
# Check for USB host # from an EXTERNAL_SCRIPTS build option
# if [ -f /etc/init.d/rc.APM ]
if [ $USB != autoconnect ]
then then
#
# Check for USB host
#
if [ $USB != autoconnect ]
then
echo "[init] not connecting USB" echo "[init] not connecting USB"
else else
if sercon if sercon
then then
echo "[init] USB interface connected" echo "[init] USB interface connected"
@ -60,12 +65,8 @@ else
echo "[init] No USB connected" echo "[init] No USB connected"
fi fi
fi fi
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 ]
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
sh /etc/init.d/rc.APM sh /etc/init.d/rc.APM

Loading…
Cancel
Save