Advertisement
Guest User

Untitled

a guest
Oct 26th, 2015
2,005
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. address="20:73:AB:10:C6:B4"
  4.  
  5. while (sleep 1)
  6. do
  7. connected=`sudo bluetoothctl info 20:73:AB:10:C6:B4` > /dev/null
  8. if [[ ! $connected =~ .*"Connected: no".* ]] ; then
  9. sudo bluetoothctl connect ${address} > /dev/null 2>&1
  10. fi
  11. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement