Comment 12 for bug 1565940

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

> My particular use case is to detect, inside a shell script, if there is any bluetooth hardware at all.

I suggest a better way to detect Bluetooth hardware is to check with the kernel directly:

  if /sys/class/bluetooth/ exists and is non-empty then ...

The directory is created when the first Bluetooth controller is added to the system, and becomes empty only after the last one is removed.