#!/bin/sh

. /opt/chess/bin/winesetup

#
# Try to mount Fritz8 CDROM
#
mounted=`mount -l | grep -c "/cdrom"`
if [ $mounted -eq 0 ]; then
        mount /media/cdrom
fi
exec wine /opt/chess/DOS/ChessBase/ChessProgram8/ChessProgram8.exe "$@"
