if [[ "$LOGNAME" == "rabbit" ]] then if [[ "`tty`" == "/dev/tty1" ]] then echo ls -1 /home/rabbit/.sessions | /bin/sh | termenu | read sessionpath if [[ "$sessionpath" == "5 Console" ]] then clear else startx /home/rabbit/.sessions/"$sessionpath"/init logout fi fi fi