3 PIPEPREFIX
=/tmp
/wmradio_
5 PIPE
=${PIPEPREFIX}`id -u`
7 if [ "$1" = "" ] ; then
8 echo -e "Usage: $0 COMMAND [param]\n"\
9 "valid commands are:\n"\
23 if [ ! -p $PIPE ] ; then
24 echo "Pipe $PIPE doesn't exist! Is wmradio started?"
30 POWER|TUNE_MINUS|FINE_TUNE_MINUS|TUNE_PLUS|\
31 FINE_TUNE_PLUS|SCAN|TUNE_NAME_NEXT|TUNE_NAME_PREV|\
35 SET_PRESET|SAVE_PRESET
)
36 if [ "$2" = "" ] ; then
37 echo "wmradio-remote: command \"$1\" need an argument"
40 echo $1 `expr $2 - 1` >>$PIPE
43 echo "wmradio-remote: invalid command \"$1\""