sercon is only used by APM now

This commit is contained in:
Lorenz Meier
2013-07-16 16:43:11 +02:00
parent c8aca814ca
commit 39d8847189
+21 -20
View File
@@ -42,30 +42,31 @@ then
sh /fs/microsd/etc/rc.txt sh /fs/microsd/etc/rc.txt
fi fi
#
# Check for USB host
#
if [ $USB != autoconnect ]
then
echo "[init] not connecting USB"
else
if sercon
then
echo "[init] USB interface connected"
else
if [ -f /dev/ttyACM0 ]
echo "[init] NSH via USB"
then
else
echo "[init] No USB connected"
fi
fi
fi
# if this is an APM build then there will be a rc.APM script # if this is an APM build then there will be a rc.APM script
# from an EXTERNAL_SCRIPTS build option # from an EXTERNAL_SCRIPTS build option
if [ -f /etc/init.d/rc.APM ] if [ -f /etc/init.d/rc.APM ]
then then
#
# Check for USB host
#
if [ $USB != autoconnect ]
then
echo "[init] not connecting USB"
else
if sercon
then
echo "[init] USB interface connected"
else
if [ -f /dev/ttyACM0 ]
echo "[init] NSH via USB"
then
else
echo "[init] No USB connected"
fi
fi
fi
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