oops that wouldn't have worked

This commit is contained in:
Felix Van der Jeugt 2015-10-08 15:51:46 +02:00
parent ded91406e8
commit aaae10d3e2
1 changed files with 6 additions and 3 deletions

View File

@ -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