blob: 76b5e29624bacac0876153badc33e000f39b8155 [file] [log] [blame]
Andrew Geissler72956ed2021-01-08 16:11:14 -06001#!/bin/sh
2
3set -e
4
Patrick Williams92b42cb2022-09-03 06:53:57 -05005sleep 10
Andrew Geissler72956ed2021-01-08 16:11:14 -06006
Patrick Williams2390b1b2022-11-03 13:47:49 -05007ls /sys/class/udc/ | head -n 1 | xargs echo -n > /sys/kernel/config/usb_gadget/adb/UDC
8
Andrew Geissler517393d2023-01-13 08:55:19 -06009echo "Setting UDC $(ls /sys/class/udc/ | head -n 1) for USB ADB Gadget usage"