Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- #$1 0 -bluetooth0, 1 -bluetooth1, 2 -bluetooth0
- if [ "$1" != "" ]
- BT_DEVICE=""
- if [ "$1" == "0" ]
- BT_DEVICE="11:11:11:11:11:11"
- fi
- if [ "$1" == "1" ]
- BT_DEVICE="22:22:22:22:22:22"
- fi
- if [ "$1" == "2" ]
- BT_DEVICE="33:33:33:33:33:33"
- fi
- program <<EOF
- "$1"
- EOF
- else
- echo "no parameter"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement