Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | [ -d /sys/kernel/config/usb_gadget ] || exit 0 | ||||
4 | |||||
5 | cd /sys/kernel/config/usb_gadget | ||||
6 | |||||
7 | cd adb | ||||
8 | |||||
9 | echo "" > UDC || true | ||||
10 | |||||
11 | killall adbd || true | ||||
12 | |||||
13 | umount /dev/usb-ffs/adb | ||||
14 | |||||
15 | rm configs/c.1/ffs.usb0 | ||||
16 | |||||
17 | rmdir configs/c.1/strings/0x409 | ||||
18 | rmdir configs/c.1 | ||||
19 | |||||
20 | rmdir functions/ffs.usb0 | ||||
21 | rmdir strings/0x409 | ||||
22 | |||||
23 | cd .. | ||||
24 | rmdir adb |