-if [ -z "$1" ] ; then
- FILE="/usr/share/grml/effect.ogg"
-else
- FILE="$*"
-fi
-
-if ! [ -r "$FILE" ] ; then
- echo "Sorry, /usr/share/grml/effect.ogg of package grml-files not available.">&2
- exit 1
-fi
-
-echo "$PN - trying to play $FILE with $PLAYER
-
-You do not hear anything? Make sure volume is not turned off.
-Adjust mixer settings via aumix or alsamixer.
-
-Tip: $PN supports some options.
-Just provide the file(s) you want to play as argument(s),
-adjust player which should be used for playing the files
-via environment variable PLAYER. Usage example:
-
- PLAYER=mplayer $PN /usr/share/grml/effect.ogg /another/file/to/play.mp3
-"
-
-$PLAYER $FILE && echo "It looks like sound works for you. :-)" || echo "problems with sound? :-("