#!/bin/sh

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

