I am working with Linux Mint and as far as I know when I boot the PC the bluetooth connection remains opened although you closed it the last session. So at the booting I created the script closing the bluetooth connection with "rfkill block bluetooth" so my BT connection remains always disconnected after a boot. Now I would prefer at the booting to test if my bluetooth mouse is reachable. If can be connected then connect it. If after 5 seconds it can't be connected then disconnect the bluetooth from the PC. How do I write this script?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.