I need to be able to execute a small script on the host before the container/application is started or restarted.
I need this to initialise bluetooth correctly. I have tried the commands from inside the application container without success… If I execute them manually from a host terminal and restart the application container then all is golden.
The commands are
- hciconfig hci0 up/down - bluetoothctl <<< connect <MAC ADDR>