> 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.
> 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.