Skip to content

Instantly share code, notes, and snippets.

View mdup's full-sized avatar

Marc Dupont mdup

  • France
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mdup on github.
  • I am mdup (https://keybase.io/mdup) on keybase.
  • I have a public key whose fingerprint is ADB6 0AB0 89F3 8FB3 9EBD 9942 A542 D7E7 4522 C0AA

To claim this, I am signing this object:

@mdup
mdup / gist:5990899
Created July 13, 2013 14:27
Raspberry PI automatic A2DP receiver script. Handles several devices which may connect and disconnect live. Source: http://www.blackv.tk/projects/retropi/raspberry-pi-a2dp-audio-sink/
#!/bin/sh
#change if you don't use default audio out
AUDIOSINK="alsa_output.platform-bcm2835_AUD0.0.analog-stereo"
echo "Executing bluetooth script...|$ACTION|" >> /var/log/bluetooth_dev
ACTION=$(expr "$ACTION" : "\([a-zA-Z]\+\).*")
if [ "$ACTION" = "add" ]
then