This commit is contained in:
Page Asgardius 2023-12-31 11:49:42 -07:00
parent 227493cbca
commit bd1595b074

2
umsgadget.sh Normal file → Executable file
View file

@ -11,7 +11,7 @@ if [ $# -eq 0 ]; then
fi
if [ $# -eq 1 ]; then
if [ -d "/sys/kernel/config/usb_gadget/multiDeskBoard" ]; then
echo "" > /sys/kernel/config/usb_gadget/multiDeskBoard/UDC
# echo "" > /sys/kernel/config/usb_gadget/multiDeskBoard/UDC
echo $1 > /sys/kernel/config/usb_gadget/multiDeskBoard/functions/mass_storage.usb1/lun.0/file
ls /sys/class/udc > /sys/kernel/config/usb_gadget/multiDeskBoard/UDC
else