File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,12 @@ check() {
8
8
require_any_binary /usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd || return 1
9
9
10
10
if [[ $hostonly ]]; then
11
- # Warn user if a Peripheral (0x500) is found of minor class:
11
+ # Warn user if bluetooth kernel module is loaded
12
+ # and if Peripheral (0x500) is found of minor class:
12
13
# * Keyboard (0x40)
13
14
# * Keyboard/pointing (0xC0)
14
15
# and if Appearance is set to the value defined for keyboard (0x03C1)
15
- grep -qiE -e ' Class=0x[0-9a-f]{3}5[4c]0' -e ' Appearance=0x03c1' /var/lib/bluetooth/* /* /info 2> /dev/null \
16
+ [ -d " /sys/class/bluetooth " ] && grep -qiE -e ' Class=0x[0-9a-f]{3}5[4c]0' -e ' Appearance=0x03c1' /var/lib/bluetooth/* /* /info 2> /dev/null \
16
17
&& dwarn " If you need to use bluetooth, please include it explicitly."
17
18
fi
18
19
You can’t perform that action at this time.
0 commit comments