#!/bin/bash
# RJF -
radio.sh - to hell with real player! some of us are using PPC you rot
bags!!
function
tunein {
mplayer -playlist "$1"
}
function
usage {
printf 'radio <argument> --- arguments 1=(radio 1) 2=(radio 2)
... 6=(sixmusic)\n'
}
if [ $# !=
1 ] || [ $1 = "-h" ]
then
usage
exit 0
fi
case "$1"
in
'1')
tunein
http://www.bbc.co.uk/radio1/realaudio/media/r1live.ram
;;
'2')
tunein
http://www.bbc.co.uk/radio2/realmedia/fmg2.ram
;;
'3')
tunein
http://www.bbc.co.uk/radio3/ram/r3g2.ram
;;
'4')
tunein
http://www.bbc.co.uk/radio4/realplayer/media/fmg2.ram
;;
'5')
tunein
http://www.bbc.co.uk/fivelive/live/surestream.ram
;;
'6')
tunein
http://www.bbc.co.uk/6music/ram/dsatg2.ram
;;
*)
usage
;;
esac