I've made a FM radio transmitter using the tutorial from Make: http://makezine.com/projects/pirate-radio-throwies/
Everything worked perfectly until I got to step 7 (Run PiFM at Startup). I wrote the pirateRadio.sh script as described (see below), but when I added it to the startup scripts default profile (sudo update-rc.d pirateRadio.sh defaults), it gave me a lsb tags error. I rebooted the Pi, and now it just sits at a black screen after boot up and plays one sec of the music on repeat.
I appreciate any help in advance to either get me back into my pi and/or getting the script to work and run on boot. THANK YOU!
UPDATE: I've been able to get into my SD card and delete the pirateRadio.sh file, giving me access back to my Pi. Meaning, it's got to be somewhere in this code for the pirateRadio.sh file:
#!/bin/bash
case "$1" in
start)
echo "StARRRRRRRting Pirate Radio"
sudo /usr/bin/mpg123 -4 -s -Z /home/pi/Music/* | sudo /home/pi/pifm/pifm - 90.5
;;
stop)
echo "Stopping Pirate Radio"
sudo killall pifm
;;
*)
echo "Usage: /etc/init.d/pirateRadio.sh start|stop"
exit 1
;;
esac
exit 0
sudo
in an init script should be ignored.