#!/bin/sh

LEVEL_DIR=/usr/share/games/rocksndiamonds


test "$1" = "forcestart" && forcestart=1

error_installed()
{
	echo -e "\aGame data not installed!\n"
	echo -e "usage: \n"
	echo -e "# dpkg-reconfigure rocksndiamonds\n"
	echo "for install/update game levels"

	test "$forcestart" = "1" || exit -1
}


[ -d $LEVEL_DIR/levels ] || error_installed

exec /usr/games/rocksndiamonds-bin
