M350b版本

This commit is contained in:
xin
2026-03-04 10:24:11 +08:00
parent e7cd1e93a6
commit c2cad64f17
3 changed files with 27 additions and 14 deletions

View File

@ -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