Blame 0001-Never-enable-the-bluetooth-module-by-default-1521.patch
|
Adam Williamson |
3e8627 |
From ea8c9b1c4f39c52fc45788516dea19892cc275f7 Mon Sep 17 00:00:00 2001
|
|
Adam Williamson |
3e8627 |
From: Adam Williamson <awilliam@redhat.com>
|
|
Adam Williamson |
3e8627 |
Date: Thu, 10 Jun 2021 08:41:30 -0700
|
|
Adam Williamson |
3e8627 |
Subject: [PATCH] Never enable the bluetooth module by default (#1521)
|
|
Adam Williamson |
3e8627 |
|
|
Adam Williamson |
3e8627 |
Signed-off-by: Adam Williamson <awilliam@redhat.com>
|
|
Adam Williamson |
3e8627 |
---
|
|
Adam Williamson |
3e8627 |
modules.d/62bluetooth/module-setup.sh | 9 +--------
|
|
Adam Williamson |
3e8627 |
1 file changed, 1 insertion(+), 8 deletions(-)
|
|
Adam Williamson |
3e8627 |
|
|
Adam Williamson |
3e8627 |
diff --git a/modules.d/62bluetooth/module-setup.sh b/modules.d/62bluetooth/module-setup.sh
|
|
Adam Williamson |
3e8627 |
index b8270dd5..fd22670d 100755
|
|
Adam Williamson |
3e8627 |
--- a/modules.d/62bluetooth/module-setup.sh
|
|
Adam Williamson |
3e8627 |
+++ b/modules.d/62bluetooth/module-setup.sh
|
|
Adam Williamson |
3e8627 |
@@ -6,14 +6,7 @@
|
|
Adam Williamson |
3e8627 |
check() {
|
|
Adam Williamson |
3e8627 |
# If the binary(s) requirements are not fulfilled the module can't be installed
|
|
Adam Williamson |
3e8627 |
require_any_binary /usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd || return 1
|
|
Adam Williamson |
3e8627 |
-
|
|
Adam Williamson |
3e8627 |
- if [[ $hostonly ]]; then
|
|
Adam Williamson |
3e8627 |
- # Include by default if a Peripheral (0x500) is found of minor class:
|
|
Adam Williamson |
3e8627 |
- # * Keyboard (0x40)
|
|
Adam Williamson |
3e8627 |
- # * Keyboard/pointing (0xC0)
|
|
Adam Williamson |
3e8627 |
- grep -qiE 'Class=0x[0-9a-f]{3}5[4c]0' /var/lib/bluetooth/*/*/info 2> /dev/null && return 0
|
|
Adam Williamson |
3e8627 |
- fi
|
|
Adam Williamson |
3e8627 |
-
|
|
Adam Williamson |
3e8627 |
+ # disabled until https://github.com/dracutdevs/dracut/issues/1521 is resolved
|
|
Adam Williamson |
3e8627 |
return 255
|
|
Adam Williamson |
3e8627 |
}
|
|
Adam Williamson |
3e8627 |
|
|
Adam Williamson |
3e8627 |
--
|
|
Adam Williamson |
3e8627 |
2.32.0.rc2
|
|
Adam Williamson |
3e8627 |
|