Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- address="20:73:AB:10:C6:B4"
- while (sleep 1)
- do
- connected=`sudo bluetoothctl info 20:73:AB:10:C6:B4` > /dev/null
- if [[ ! $connected =~ .*"Connected: no".* ]] ; then
- sudo bluetoothctl connect ${address} > /dev/null 2>&1
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement