oops that wouldn't have worked
This commit is contained in:
parent
ded91406e8
commit
aaae10d3e2
1 changed files with 6 additions and 3 deletions
|
@ -7,9 +7,12 @@ zeusplay 60:E3:27:09:12:DE
|
|||
HERE
|
||||
)"
|
||||
|
||||
command="connect ${mac#* }"
|
||||
command="$(cat <<HERE
|
||||
connect ${mac#* }
|
||||
quit
|
||||
HERE
|
||||
)"
|
||||
|
||||
if ! pgrep pulseaudio; then pulseaudio --start 2> /dev/null ; fi
|
||||
cat "$command" <(echo "quit") \
|
||||
| bluetoothctl > /dev/null 2>&1
|
||||
echo "$command" | bluetoothctl > /dev/null 2>&1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue