generate all composite gadgets from raspberry pi 0
[linux-usb-otg] / usb-hid-stop.sh
1 #!/bin/bash
2 cd /sys/kernel/config/usb_gadget/g1
3 echo "" > UDC
4 rm configs/c.1/hid.usb0
5 rmdir configs/c.1/strings/0x409
6 rmdir configs/c.1
7 rmdir strings/0x409
8 rmdir functions/hid.usb0
9 cd ..
10 rmdir g1