Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. #$1 0 -bluetooth0, 1 -bluetooth1, 2 -bluetooth0
  4.  
  5.  
  6.  
  7. if [ "$1" != "" ]
  8. BT_DEVICE=""
  9. if [ "$1" == "0" ]
  10. BT_DEVICE="11:11:11:11:11:11"
  11. fi
  12. if [ "$1" == "1" ]
  13. BT_DEVICE="22:22:22:22:22:22"
  14. fi
  15. if [ "$1" == "2" ]
  16. BT_DEVICE="33:33:33:33:33:33"
  17. fi
  18.  
  19. program <<EOF
  20. "$1"
  21. EOF
  22.  
  23.  
  24. else
  25. echo "no parameter"
  26.  
  27. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement