if [[ -z $DISPLAY ]] ; then # test if X is not running when calling us
if [ $(id -u) != 0 ] ; then # test if user root did invoke this command
if [[ -z $DISPLAY ]] ; then # test if X is not running when calling us
if [ $(id -u) != 0 ] ; then # test if user root did invoke this command