diff --git a/adrv1crr/adrv_crr_test/test_usb.sh b/adrv1crr/adrv_crr_test/test_usb.sh index c63ed6a..51c3de4 100755 --- a/adrv1crr/adrv_crr_test/test_usb.sh +++ b/adrv1crr/adrv_crr_test/test_usb.sh @@ -9,8 +9,7 @@ TEST_NAME="TEST_USB_HOST_MODE" TEST_ID="01" SHORT_DESC="USB port testing - please plug OTG cable with a connected USB2 flash device" CMD="OTG_PATH=\$(sudo find /sys -name role | head -n 1) ;" -CMD+="sudo -s;" -CMD+="sudo echo host > \$OTG_PATH ;" +CMD+="echo host | sudo tee \$OTG_PATH ;" CMD+="wait_enter && lsusb -t | grep -q \"Class=Mass Storage, Driver=usb-storage\"" run_test $TEST_ID "$SHORT_DESC" "$CMD"