#!/bin/sh # Pin logic #selecting pin GPIO=19 # "Prepare" it, whatever that means, I just copied it from SO if [ ! -d /sys/class/gpio/gpio${GPIO} ]; then echo "${GPIO}" > /sys/class/gpio/export fi echo "in" > /sys/class/gpio/gpio"${GPIO}"/direction # old line #(while true; do cat sampleaudio.wav; done) while true; do if 1 == "$(