1#!/bin/sh 2 3set -e 4 5sleep 10 6 7ls /sys/class/udc/ | head -n 1 | xargs echo -n > /sys/kernel/config/usb_gadget/adb/UDC 8 9echo "Setting UDC $(ls /sys/class/udc/ | head -n 1) for USB ADB Gadget usage" 10