aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common/init.d/rcS
diff options
context:
space:
mode:
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/rcS')
-rwxr-xr-xROMFS/px4fmu_common/init.d/rcS23
1 files changed, 6 insertions, 17 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS
index c0a70f7dd..22dec87cb 100755
--- a/ROMFS/px4fmu_common/init.d/rcS
+++ b/ROMFS/px4fmu_common/init.d/rcS
@@ -1,17 +1,6 @@
#!nsh
#
# PX4FMU startup script.
-#
-# This script is responsible for:
-#
-# - mounting the microSD card (if present)
-# - running the user startup script from the microSD card (if present)
-# - detecting the configuration of the system and picking a suitable
-# startup script to continue with
-#
-# Note: DO NOT add configuration-specific commands to this script;
-# add them to the per-configuration scripts instead.
-#
#
# Default to auto-start mode. An init script on the microSD card
@@ -21,11 +10,6 @@ set MODE autostart
set USB autoconnect
#
-
-#
-
-
-#
# Try to mount the microSD card.
#
echo "[init] looking for microSD..."
@@ -69,7 +53,12 @@ else
then
echo "[init] USB interface connected"
else
- echo "[init] No USB connected"
+ if [ -f /dev/ttyACM0 ]
+ echo "[init] NSH via USB"
+ then
+ else
+ echo "[init] No USB connected"
+ fi
fi
fi