aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/scripts/rcS
diff options
context:
space:
mode:
Diffstat (limited to 'ROMFS/scripts/rcS')
-rwxr-xr-xROMFS/scripts/rcS10
1 files changed, 4 insertions, 6 deletions
diff --git a/ROMFS/scripts/rcS b/ROMFS/scripts/rcS
index 9b9a2fd61..33f63ca87 100755
--- a/ROMFS/scripts/rcS
+++ b/ROMFS/scripts/rcS
@@ -18,7 +18,6 @@
# can change this to prevent automatic startup of the flight script.
#
set MODE autostart
-set USB_ALLOWED yes
set USB no
#
@@ -47,12 +46,11 @@ fi
#
# Check for USB host
#
-if [ $USB_ALLOWED == yes ]
+if sercon
then
- if sercon
- then
- echo "[init] USB interface connected"
- fi
+ echo "[init] USB interface connected"
+else
+ echo "[init] No USB connected"
fi
#