#!/bin/sh

if [ "$DISPLAY " != " " ] && [ -f /usr/bin/gftp-gtk ]; then
	exec /usr/bin/gftp-gtk ${1+"$@"}
elif [ -f /usr/bin/gftp-text ]; then
	exec /usr/bin/gftp-text ${1+"$@"}
else
	echo "Error: Can't find gFTP binaries installed in /usr/bin"
fi

