Bluetooth module can result in a known race condition at boot.
Discourage its usage by default.
require_any_binary /usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd || return 1
if [[ $hostonly ]]; then
- # Include by default if a Peripheral (0x500) is found of minor class:
+ # Warn user if a Peripheral (0x500) is found of minor class:
# * Keyboard (0x40)
# * Keyboard/pointing (0xC0)
- grep -qiE 'Class=0x[0-9a-f]{3}5[4c]0' /var/lib/bluetooth/*/*/info 2> /dev/null && return 0
+ grep -qiE 'Class=0x[0-9a-f]{3}5[4c]0' /var/lib/bluetooth/*/*/info 2> /dev/null \
+ && dwarn "If you need to use bluetooth, please include it explicitly."
fi
return 255