#!/bin/sh

[ -h "$0" ] && ORIGIN=`ls -l "$0" | sed "s/.*-> //g"` || ORIGIN="$0"
ORIGIN=`(cd "\`dirname \"$ORIGIN\"\`"; pwd -P 2>/dev/null || pwd)`

if [ $# = 0 ]; then
    exec "${ORIGIN}/tlclient"
elif [ $# = 1 ]; then
    exec "${ORIGIN}/tlclient" -C "$1"
else
    echo "Usage: $0 [configfile]" >&2
fi
