From 6a2fc4f377978a0049f6903c630e89f9d57940c8 Mon Sep 17 00:00:00 2001 From: amazingfate Date: Wed, 18 Sep 2024 00:25:42 +0800 Subject: [PATCH] armsom-w3: fix m.2 usb bluetooth --- config/boards/armsom-w3.csc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/boards/armsom-w3.csc b/config/boards/armsom-w3.csc index 900ec2af8a..eeaa943fd3 100644 --- a/config/boards/armsom-w3.csc +++ b/config/boards/armsom-w3.csc @@ -28,3 +28,12 @@ function post_family_tweaks__armsom-w3_naming_audios() { 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 +}