#!/bin/bash
dir=`dirname $0`
cmd=$1

xhost +

xsu=`which beesu gksu kdesu 2>&- | head -1`

if [ $xsu ]; then
        $xsu $cmd #>/dev/null 2>&1
        exit
fi

xterm=`which gnome-terminal terminal mate-terminal konsole xterm rxvt eterm 2>&- | head -1`

if [ -z "$xsu" ]; then  
	$xterm -e "$dir/toec_oep4010dn_function_textoutmod $cmd >/dev/null 2>&1" && exit
fi


