#!/bin/sh
NAME=`basename $0`
PLAY=ogg123
if ! which ${PLAY} > /dev/null ; then
    echo "${PLAY} not found."
    exit -1
fi

SOUND=/usr/share/andreas-privat/sound/${NAME}.ogg
if [ ! -s ${SOUND} ] ; then
    echo "Sound file ${SOUND} not found."
    exit -1
fi

if [ _"$1" = _"-v" ] ; then
    echo ${PLAY} ${SOUND}
    ${PLAY} ${SOUND}
else
    ${PLAY} ${SOUND} 2> /dev/null &
fi

