Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Image install - web interface hangs all the time
#5
@Tim Curtis 

Hi, Tim.

I had to go back and look at playerlib.php for the line

Code:
// start bluetooth
function startBt() {
       sysCmd('systemctl start hciuart');
       sysCmd('systemctl start bluetooth');
       sysCmd('systemctl start bluealsa');

       // we should have a MAC address
       $result = sysCmd('ls /var/lib/bluetooth');
       if ($result[0] == '') {
               workerLog('worker: Bluetooth error, no MAC address');
       }
       // initialize controller
       else {
               $result = sysCmd('/var/www/command/bt.sh -i');
               workerLog('worker: Bluetooth controller initialized');
       }
}

I came across this when we were fiddling with BT a while back but didn't stop to think about it. 

I don't have an RPi2B online at the moment so I can't test the no-adapter condition. On an RPi3B+ that is running, I get

Code:
pi@moode44h1:~ $ sudo ls -l /var/lib/bluetooth
total 4
drwx------ 5 root root 4096 Jan  2 13:28 B8:27:EB:83:AA:7A

Regards,
Kent
Reply


Messages In This Thread
RE: Image install - web interface hangs all the time - by TheOldPresbyope - 01-08-2019, 05:23 PM

Forum Jump: