check bluetooth radio status bash

C++
sudo service bluetooth status

Source

Also in C++: