#!/usr/bin/bash if [ "$#" -ne 1 ] ; then echo "Usage: $0 name" exit 1 fi bluetoothctl connect $(bt-addr $1) exit 0