player()
{
   if [ -f /usr/local/bin/splay ]; then
	if [ -f /usr/local/sound/operatio.voc.gz ]; then
		zcat /usr/local/sound/operatio.voc.gz | /usr/local/bin/splay -s 10000
	fi
	if [ -f /usr/local/sound/door.voc.gz ]; then
		zcat /usr/local/sound/door.voc.gz | /usr/local/bin/splay -s 20000
	fi
	if [ -f /usr/local/sound/nextecho.gz ]; then
		zcat /usr/local/sound/nextecho.gz | /usr/local/bin/splay -s 20000
	fi
   fi

   if [ -f /usr/local/bin/str ]; then	
	if [ -f /usr/local/sound/funk.mod.gz ]; then
		zcat /usr/local/sound/funk.mod.gz | /usr/local/bin/str
	fi
   fi
}

if [ -f /etc/SOUND ]; then
	if [ `cat /etc/SOUND` = "YES" ]; then
		player
	fi
fi
			
