#!/bin/sh -e

wineserver32=/BINDIR/wineserver32
wineserver64=/BINDIR/wineserver64

if test -x "$wineserver64"; then
    wineserver=$wineserver64
elif test -x "$wineserver32"; then
    wineserver=$wineserver32
else
    echo "error: unable to find wineserver executable.  this shouldn't happen." >&2
    exit 1
fi

exec $wineserver -p0 "$@"
