12345678910111213141516171819 |
- # On the rpi b it seems like on boot there is a 50% chance that the USB
- # bluetooth peripheral will not initialize leaving the system without a
- # default bt-controller (peripheral is a UB500 TP-Link BLE 5.0 adapter)
- [Unit]
- Description=Prevent Radon Eye from starting until bluetooth controller is available.
- After=multi-user.target network.target bluetooth.target
- Requires=bluetooth.target
- [Service]
- Type=oneshot
- User=radon
- RemainAfterExit=yes
- WorkingDirectory=/home/radon
- ExecStart=/usr/bin/python3 blocker.py
- ExecReload=/usr/bin/python3 blocker.py
- [Install]
- WantedBy=radon-eye.service
|