#!/bin/sh

# This script checks if the wine config file is valid for
# the istalled wine version

WINE_CONFIG_PATH=/usr/lib/wine/SuSEconfig
PATH=$PATH:$WINE_CONFIG_PATH

if [ "`cat $WINE_CONFIG_PATH/installed_wine_version`" == "`config_wine_version`" ] ; then
  # config is valid
  exit 0
else
  # config file does not exist or it is for another version of wine
  exit 1
fi
