From 821306bc4dccf9bd58112680f499602d384db917 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 20 Aug 2012 17:48:31 +0200 Subject: Allow to disable USB interface (but leave it enabled as default), give uORB more stack space --- ROMFS/scripts/rcS | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'ROMFS/scripts/rcS') diff --git a/ROMFS/scripts/rcS b/ROMFS/scripts/rcS index 33f63ca87..7b8d51338 100755 --- a/ROMFS/scripts/rcS +++ b/ROMFS/scripts/rcS @@ -18,7 +18,7 @@ # can change this to prevent automatic startup of the flight script. # set MODE autostart -set USB no +set USB autoconnect # # Try to mount the microSD card. @@ -46,11 +46,16 @@ fi # # Check for USB host # -if sercon +if [ $USB != autoconnect ] then - echo "[init] USB interface connected" + echo "[init] not connecting USB" else - echo "[init] No USB connected" + if sercon + then + echo "[init] USB interface connected" + else + echo "[init] No USB connected" + fi fi # -- cgit v1.2.3