armsom-w3: fix m.2 usb bluetooth

This commit is contained in:
amazingfate
2024-09-18 00:25:42 +08:00
committed by Igor
parent 5e54e2beb8
commit 6a2fc4f377

View File

@@ -28,3 +28,12 @@ function post_family_tweaks__armsom-w3_naming_audios() {
return 0 return 0
} }
function post_family_tweaks__armsom-w3_fix_m2_bluetooth() {
display_alert "$BOARD" "Fixing armsom-w3 m.2 usb bluetooth" "info"
mkdir -p $SDCARD/etc/udev/rules.d/
echo 'ACTION=="add", SUBSYSTEM=="usb",ATTR{bConfigurationValue}=="", ATTR{bConfigurationValue}="1"' > $SDCARD/etc/udev/rules.d/91-m2-usb-bluetooth.rules
return 0
}