M350b版本
This commit is contained in:
@ -46,8 +46,9 @@ if lsmod | grep -q g_ether; then
|
||||
fi
|
||||
rmmod g_mass_storage
|
||||
sleep 1
|
||||
|
||||
rm -rf /sys/kernel/config/usb_gadget/pi4
|
||||
if [ ! -d /sys/kernel/config/usb_gadget/pi4 ]; then
|
||||
echo "Creating USB Gadget configuration..."
|
||||
mkdir -p /sys/kernel/config/usb_gadget/pi4
|
||||
cd /sys/kernel/config/usb_gadget/pi4
|
||||
echo 0x2ca3 > idVendor # Linux Foundation
|
||||
|
||||
Reference in New Issue
Block a user