#!/bin/sh server=${1:-gs} if [ $server = "gsc" ] then server="https://ice4.somafm.com/gsclassic-128-mp3" elif [ $server = "gs" ] then server="https://ice1.somafm.com/groovesalad-256-mp3" elif [ $server = "isl" ] then server="https://ice1.somafm.com/illstreet-128-mp3" elif [ $server = "def" ] then server="https://ice4.somafm.com/defcon-256-mp3" elif [ $server = "soul" ] then server="https://ice1.somafm.com/7soul-128-mp3" fi curl --output - -s "$server" | sndfile-play - 1>/dev/null & echo $! > /tmp/gspid