#!/bin/sh

ARCH=`uname -m`

# Set the libpath and pick the proper binary
if [ "$ARCH" == "x86_64" ]; then
        export LD_LIBRARY_PATH="./lib64:${LD_LIBRARY_PATH}"
        ./nx.x86_64.bin "$@"
else
        export LD_LIBRARY_PATH="./lib:${LD_LIBRARY_PATH}"
        ./nx.x86_64.bin "$@"
fi
