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

View File

@ -7,9 +7,12 @@ zeusplay 60:E3:27:09:12:DE
HERE HERE
)" )"
command="connect ${mac#* }" command="$(cat <<HERE
connect ${mac#* }
quit
HERE
)"
if ! pgrep pulseaudio; then pulseaudio --start 2> /dev/null ; fi if ! pgrep pulseaudio; then pulseaudio --start 2> /dev/null ; fi
cat "$command" <(echo "quit") \ echo "$command" | bluetoothctl > /dev/null 2>&1
| bluetoothctl > /dev/null 2>&1